www.digitalmars.com         C & C++   DMDScript  

c++.command-line - Linker undefined symbol

reply DQNOK <davidlqualls yahoo.com> writes:
When I compile two files with the dmc command line, I get:
...
link Qstring+bits,,,user32+kernel32/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

bits.obj(bits)
 Error 42: Symbol Undefined ??0String  QAE I Z (syscall
String::String(unsigned
))

--- errorlevel 1

Both files compile fine.  How do I find where the undefined symbol
is being used within the source file?  I can't find it in the map
files.
Oct 16 2007
parent Walter Bright <newshound1 digitalmars.com> writes:
DQNOK wrote:
 When I compile two files with the dmc command line, I get:
 ...
 link Qstring+bits,,,user32+kernel32/noi;
 OPTLINK (R) for Win32  Release 7.50B1
 Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved
 
 bits.obj(bits)
  Error 42: Symbol Undefined ??0String  QAE I Z (syscall
 String::String(unsigned
 ))
 
 --- errorlevel 1
 
 Both files compile fine.  How do I find where the undefined symbol
 is being used within the source file?  I can't find it in the map
 files.

Grep will tell you which .obj file it is in.
Oct 18 2007