www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Problems with RTL-DLL

↑ ↓ ← mjs NOSPAM.hannover.sgh-net.de (Mark Junker) writes:
Hi,

when I want to use the DLL version of the RTL (snd.lib),
I get the following output:

--------------------- snip --------------------------
sc Test1.cpp -mn -o+time -WA -S -ND -5 -a8 -Nc -c -D_CONSOLE=1 -D_UNICODE=1 - 
oTest1.obj
link /NOI /DE /PACKF /XN /NT /ENTRY:wmainCRTStartup /BAS:4194304 /A:512
 Test1.LNK
Error: C:\PROGRAMME\SC\BIN\..\lib\SND.lib(_wprintf)  (1232560): Symbol
Undefined _vwprintf
Lines Processed: 306  Errors: 1  Warnings: 0
Build failed
--------------------- snip --------------------------

This is my test application:
--------------------- snip --------------------------
#include <stdio.h>

int wmain(int argc, wchar_t **argv)
{
    wprintf(L"This is a test of wprintf\n");
}
--------------------- snip --------------------------

I use dmc 8.35.1.

Best regards,
Mark Junker
Jun 10 2003
↑ ↓ → "Walter" <walter digitalmars.com> writes:
The only workaround for the moment is to use the statically linked library,
snn.lib. Sorry, -Walter

"Mark Junker" <mjs NOSPAM.hannover.sgh-net.de> wrote in message
news:8n$9Mqpd8gB hannover.sgh-net.de...
 Hi,

 when I want to use the DLL version of the RTL (snd.lib),
 I get the following output:

 --------------------- snip --------------------------
 sc

 oTest1.obj
 link /NOI /DE /PACKF /XN /NT /ENTRY:wmainCRTStartup /BAS:4194304 /A:512

 Error: C:\PROGRAMME\SC\BIN\..\lib\SND.lib(_wprintf)  (1232560): Symbol

 Lines Processed: 306  Errors: 1  Warnings: 0
 Build failed
 --------------------- snip --------------------------

 This is my test application:
 --------------------- snip --------------------------
 #include <stdio.h>

 int wmain(int argc, wchar_t **argv)
 {
     wprintf(L"This is a test of wprintf\n");
 }
 --------------------- snip --------------------------

 I use dmc 8.35.1.

 Best regards,
 Mark Junker

Jun 10 2003