www.digitalmars.com         C & C++   DMDScript  

c++.command-line - problems

reply "Bjornar Svingen" <bs fdb.no> writes:
I'm bulding a dll, but get these linker error. (works with other compilers
so i have no idea what to include if anything). What am i doing wrong?


C:\lvtest>dmc testlv.c -WD
link testlv,,,,testlv/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

c:\dm\bin\..\lib\SNN.lib(dllstart)
 Error 42: Symbol Undefined _GetCurrentThreadId 0
c:\dm\bin\..\lib\SNN.lib(dllstart)
 Error 42: Symbol Undefined _GetVersion 0
c:\dm\bin\..\lib\SNN.lib(cinit)
 Error 42: Symbol Undefined _GetEnvironmentStrings 0
Jan 14 2003
parent "Walter" <walter digitalmars.com> writes:
Need to link with kernel32.lib.

"Bjornar Svingen" <bs fdb.no> wrote in message
news:b019d9$15mr$1 digitaldaemon.com...
 I'm bulding a dll, but get these linker error. (works with other compilers
 so i have no idea what to include if anything). What am i doing wrong?


 C:\lvtest>dmc testlv.c -WD
 link testlv,,,,testlv/noi;
 OPTLINK (R) for Win32  Release 7.50B1
 Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

 c:\dm\bin\..\lib\SNN.lib(dllstart)
  Error 42: Symbol Undefined _GetCurrentThreadId 0
 c:\dm\bin\..\lib\SNN.lib(dllstart)
  Error 42: Symbol Undefined _GetVersion 0
 c:\dm\bin\..\lib\SNN.lib(cinit)
  Error 42: Symbol Undefined _GetEnvironmentStrings 0
Jan 15 2003