Unresolved External Symbol?

This is a discussion on Unresolved External Symbol? within the C Programming forums, part of the General Programming Boards category; I'm trying to compile some source code I got from zaber at Software - ZaberWiki . The source code for ...

  1. #1
    AYT
    AYT is offline
    Registered User
    Join Date
    Jun 2009
    Posts
    1

    Unresolved External Symbol?

    I'm trying to compile some source code I got from zaber at Software - ZaberWiki. 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

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    You need to include the header that has 'gotoxy', 'clrscr', 'Sleep', etc. They're not standard functions, and so you need the same compiler the original guy had, or one that provides those functions. Or you need to rewrite the program to not use those.


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,249
    I don't know about Sleep(), but gotoxy() and clrscr() are old Turbo C++ functions. Barf. What kind of awful code is this?
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  4. #4
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Sleep() is from the Windows API.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 02:07 AM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 01:28 PM
  4. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 04:44 PM
  5. debug to release modes
    By DavidP in forum Game Programming
    Replies: 5
    Last Post: 03-20-2003, 02:01 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21