Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: A.Y. on June 10, 2009, 11:03:09 pm

Title: Unresolved External Symbol
Post by: A.Y. 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
Title: Re: Unresolved External Symbol
Post by: stahta01 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