shawnnason
Programmer
I have an Abstract Syntax Notation (ASN) definition that is about 60 pages long. I used an ASN syntax checker to check the file and then used a commercial ASN compiler to build a .c and .h file. I then loaded te .c and .h files into Visual C++. When I build them, I get errors that say:
--------------------Configuration: MULTIMEDIA-SYSTEM-CONTROL - Win32 Debug--------------------
Linking...
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _rtErrSetData
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_ConsInteger
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_ConsInteger
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_ObjectIdentifier
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_ConsUnsigned
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_ObjectIdentifier
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _rtMemAlloc
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_ConsUnsigned
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_OctetString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_DynOctetString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_OpenTypeExt
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_bit
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_OpenTypeExt
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_bit
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pu_addSizeConstraint
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_OctetString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_NumericString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_ChoiceOpenTypeExt
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_NumericString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_Length
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_Length
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pu_freeContext
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_OpenType
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_GetMsgPtr
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_byte_align
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pu_initContext
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_SmallNonNegWholeNumber
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _rtInitContextBuffer
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _rtCopyContext
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_OpenType
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_moveBitCursor
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pu_initContextBuffer
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_SmallNonNegWholeNumber
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_byte_align
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_UnconsInteger
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_UnconsInteger
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_IA5String
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_IA5String
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_GeneralString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_GeneralString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_BitString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_BitString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_BMPString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_BMPString
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/MULTIMEDIA-SYSTEM-CONTROL.exe : fatal error LNK1120: 45 unresolved externals
Error executing link.exe.
MULTIMEDIA-SYSTEM-CONTROL.exe - 46 error(s), 0 warning(s)
I had thought that the ASN compiler would give meverything I needed. I admit that I know next to nothing about VC++. What do I need to do in order to make these errors go away? Do I need to create a project and put this code in it? What kind of project? Do I need to do something special with my project? Do I need to include something that I am missing?
--------------------Configuration: MULTIMEDIA-SYSTEM-CONTROL - Win32 Debug--------------------
Linking...
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _rtErrSetData
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_ConsInteger
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_ConsInteger
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_ObjectIdentifier
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_ConsUnsigned
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_ObjectIdentifier
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _rtMemAlloc
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_ConsUnsigned
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_OctetString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_DynOctetString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_OpenTypeExt
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_bit
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_OpenTypeExt
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_bit
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pu_addSizeConstraint
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_OctetString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_NumericString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_ChoiceOpenTypeExt
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_NumericString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_Length
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_Length
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pu_freeContext
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_OpenType
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_GetMsgPtr
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_byte_align
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pu_initContext
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_SmallNonNegWholeNumber
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _rtInitContextBuffer
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _rtCopyContext
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_OpenType
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_moveBitCursor
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pu_initContextBuffer
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_SmallNonNegWholeNumber
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_byte_align
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_UnconsInteger
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_UnconsInteger
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_IA5String
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_IA5String
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_GeneralString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_GeneralString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_BitString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_BitString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pe_BMPString
MULTIMEDIA-SYSTEM-CONTROL.obj : error LNK2001: unresolved external symbol _pd_BMPString
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/MULTIMEDIA-SYSTEM-CONTROL.exe : fatal error LNK1120: 45 unresolved externals
Error executing link.exe.
MULTIMEDIA-SYSTEM-CONTROL.exe - 46 error(s), 0 warning(s)
I had thought that the ASN compiler would give meverything I needed. I admit that I know next to nothing about VC++. What do I need to do in order to make these errors go away? Do I need to create a project and put this code in it? What kind of project? Do I need to do something special with my project? Do I need to include something that I am missing?