Re: Another stupid MSVC6 linking problem



hamishd wrote:
First of all, i'm using the standard Release and Debug configurations.
I don't know enough to meddle with those.

I compile and link in Release mode, and we are all good.
I compile and link in Debug mode, and a get:

TestClass.obj : error LNK2001: unresolved external symbol _CSloadData
plus a few other similar errors from the same library.

Now first of all I thought i must have been missing a *.lib in the
Object / Library modules in the Project -> Settings -> Link tab, but
alas.

What could cause this type of difference between Release and Debug?

There might be one or several of the following:

- difference introduced in source (#ifdef DEBUG),
- difference between configurations (Debug and Release may differ in some obscure setting, not only missing a *.lib),
- difference between libs itself (i.e. you must include different libs appropriate for the configuration, like SomeLibDBG.lib and SomeLibRLS.lib)

So, maybe you use CSloadData only in Debug mode, and that function really isn't there. Or you changed function calling convention (__cdecl should be default). Or you should really include some other lib, not the one you included.

BTW, this isn't the type of the question for comp.lang.c++
.



Relevant Pages

  • Re: python25_d.lib
    ... Iam getting the linked error "cannot open file python25_d.lib" ... python25_d.dll (and .lib). ... You will need to compile the debug build of Python yourself. ...
    (comp.lang.python)
  • Re: Debug Vs Release
    ... > If I compile that code in debug mode then dissassemble the EXE, ... > private static void Main(stringargs) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Getting started on the HP49g+
    ... either the original HP extable lib ... extable2 lib from http://www.hpcalc.org/details.php?id=3940. ... ask again if you have any problem installing libraries. ... compile the string with ASM (listed in the development lib menu, ...
    (comp.sys.hp48)
  • Re: Getting a stack trace from a running application
    ... Unfortunately, the only infromation they can provide is a memory address, which is pretty useless as it doesn't tell me if my main exe is the culprit or if it's some dll or ocx or whatever. ... If you compile the the program with debug information, the debugger will show the responsible line of your code that caused the error. ...
    (comp.lang.basic.visual.misc)
  • Re: copymemory basic question
    ... I have used that technique before; that is, put a MessageBox in a VC program ... workspace and then debug the program without using the MessageBox or MsgBox. ... > - Compile and save. ... not able to show anything due to the optimization. ...
    (microsoft.public.vb.winapi)