#1
  1. Some day I will be a Lambda!
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Location
    NJ
    Posts
    18
    Rep Power
    0

    Question unresolved external errors ???


    What causes an external link error?

    I have developed 2 separate header files that compile with no errors and run. But, when I have one the header files call the other I get several external link errors.

    Also, I'm running Win2K with a VC++ 6.0 compiler, if it matters.

    Linking...
    test.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall Db::~Db(void)" (??1Db@@UAE@XZ)
    test.obj : error LNK2001: unresolved external symbol "public: __thiscall Db:: Db(class DbEnv *,unsigned int)" (??0Db@@QAE@PAVDbEnv@@I@Z)
    Debug/InfoCell.exe : fatal error LNK1120: 2 unresolved externals
    Error executing link.exe.
    :confused:

    Thanks,
    Eric
    Last edited by Beans4You; October 12th, 2002 at 08:54 PM.
  2. #2
  3. *bounce*
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2002
    Location
    Delft, The Netherlands
    Posts
    514
    Rep Power
    42
    Since it's probably your code that's at fault, post some. The output above is too little to go on.
    "A poor programmer is he who blames his tools."
    http://analyser.oli.tudelft.nl/
  4. #3
  5. Some day I will be a Lambda!
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Location
    NJ
    Posts
    18
    Rep Power
    0

    Lightbulb


    Once again...

    I was very frustrated last night so I turned off the computer and went to bed. When I cranked up the CPU this morning I said to myself, "Self check your libraries". Well that was it. I forgot to build it against the libdb41d.lib. Thanks for everyone's help, and yes I'm a moron.

IMN logo majestic logo threadwatch logo seochat tools logo