Author Topic: Unresolved External Symbol  (Read 7280 times)

A.Y.

  • Guest
Unresolved External Symbol
« on: June 10, 2009, 11:03:09 pm »
I'm trying to compile some source code I got from zaber at http://www.zaber.com/wiki/Software.  The source code for the files is in the Zaber_C_Win32_Demo.zip download (C written console program for serial communication).  I had to include all the libraries it asks for (winmm.lib is one of them) but when it stops saying it can't find the libraries (ie after I finish adding all the ones it needs into the linker), it gives me this:

-------------- Build: Release in asdfghjkl;' ---------------

Linking console executable: bin\Release\asdfghjkl;'.exe
main.obj : error LNK2019: unresolved external symbol _gotoxy referenced in function _Redraw
main.obj : error LNK2019: unresolved external symbol _clrscr referenced in function _main
main.obj : error LNK2019: unresolved external symbol _Sleep referenced in function _main
bin\Release\asdfghjkl;'.exe : fatal error LNK1120: 3 unresolved externals
Process terminated with status 1120 (0 minutes, 0 seconds)
4 errors, 0 warnings

Not sure how to fix this.

Please help.  How do I get it to compile.

Thanks

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Unresolved External Symbol
« Reply #1 on: June 11, 2009, 01:26:11 am »
Go to a beginner site for C Programming; example site: http://cboard.cprogramming.com/
post the error and full compiler log for them to help you.

Note: Post the name and version of the Compiler you are using on the other site; it can make a difference.

How to turn on full compiler log see
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org