Thread: unresolved external symbol

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    28

    Unhappy unresolved external symbol

    I wrote a program using several functions.
    the compile said 0 errors 0 warnings but,
    the build gave me the following error for every function I wrote:

    ex 2.obj : error LNK2001: unresolved external symbol "void __cdecl DERIVE(int,int)" (?DERIVE@@YAXHH@Z)

    What does it mean and how do I make my program work?

    (all functions are declared and written)
    Last edited by dana_h; 05-08-2002 at 12:05 PM.

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    There is a function DERIVE in your program which is not known. If it is in a different file, try declaring it define like:

    extern void DERIVE (int, int);

    Perhaps you've forgotten to write the function DERIVE.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Or perhaps you've mis-spelt it

    Though from the look of it, it also looks like it's a C++ symbol, so perhaps you've written DERIVE, just not with two int parameters.

  4. #4
    Registered User
    Join Date
    May 2002
    Posts
    28
    thanks
    I looked very hard at my parameters and
    I found the problem.

    It was my array definition in the functions

    All fixed now.

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, 03: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, 02:28 PM
  4. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  5. debug to release modes
    By DavidP in forum Game Programming
    Replies: 5
    Last Post: 03-20-2003, 03:01 PM