unresolved external symbol

This is a discussion on unresolved external symbol within the C Programming forums, part of the General Programming Boards category; I wrote a program using several functions. the compile said 0 errors 0 warnings but, the build gave me the ...

  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,386
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,434
    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, 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

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