Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unresolved external errors

Status
Not open for further replies.

shawnnason

Programmer
Jun 12, 2001
26
US
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?
 
All the .c files you must insert into your project. See lefthand window in VisualC++, there is a window with filenames in project. RightClick on the project and coose AddFiles. After adding files, see if compilles well. As I think, there shold be a FAQ about external symbols. John Fill
1c.bmp


ivfmd@mail.md
 
The problem here is not with the compile . . . since the error messages are being thrown by the linker, the compile has already completed w/o errors. the problem you are seeing is caused because the linker can not find the unresolved external symbols (created during compilation) in other binaries that need to be linked to you project.
To fix this. go th the project properties and select the linking tab. Here you will see a series of *.lib files. make sure that all of the *.lib files that your application needs are referenced in this list and then recompile and link. - Jeff Marler B-)
 
yes, linker, but is not alway because of missing .lib files in the settings. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top