www.digitalmars.com         C & C++   DMDScript  

c++.dos - x32 program won't compile

reply Neo <neo_in_matrix msn.com> writes:
I had no problem with 8.49 to build a simple x32 program:
  dmc -mx -o+speed x32test.cpp x32v.lib

But with 8.50, I get:

link cx+x32test,x32test,,x32v/noi;
OPTLINK (R) for Win32  Release 8.00.1
Copyright (C) Digital Mars 1989-2004  All rights reserved.
SDX.lib
 Warning 2: File Not Found SDX.lib
OPTLINK : Warning 23: No Stack
c:\dm\bin\..\x32\lib\cx.obj(cx)
 Error 42: Symbol Undefined __argc
c:\dm\bin\..\x32\lib\cx.obj(cx)
 Error 42: Symbol Undefined _errno
c:\dm\bin\..\x32\lib\cx.obj(cx)
 Error 42: Symbol Undefined __argv
c:\dm\bin\..\x32\lib\cx.obj(cx)
 Error 42: Symbol Undefined __exit
c:\dm\bin\..\x32\lib\cx.obj(cx)
 Error 42: Symbol Undefined _malloc
c:\dm\bin\..\x32\lib\cx.obj(cx)
 Error 42: Symbol Undefined __stack
c:\dm\bin\..\x32\lib\cx.obj(cx)
 Error 42: Symbol Undefined __cinit
c:\dm\bin\..\x32\lib\cx.obj(cx)
 Error 42: Symbol Undefined __baslnk
c:\dm\bin\..\x32\lib\cx.obj(cx)
 Error 42: Symbol Undefined __envptr
c:\dm\bin\..\x32\lib\cx.obj(cx)
 Error 42: Symbol Undefined __osmajor
c:\dm\bin\..\x32\lib\cx.obj(cx)
 Error 42: Symbol Undefined __osminor
c:\dm\bin\..\x32\lib\cx.obj(cx)
 Error 42: Symbol Undefined _free
c:\dm\bin\..\x32\lib\cx.obj(cx)
 Error 42: Symbol Undefined __8087
c:\dm\bin\..\x32\lib\cx.obj(cx)
 Error 42: Symbol Undefined _exit
c:\dm\bin\..\x32\lib\cx.obj(cx)
 Error 42: Symbol Undefined __psp
x32test.obj(x32test)
 Error 42: Symbol Undefined _puts
x32test.obj(x32test)
 Error 42: Symbol Undefined ??3 YAXPAX Z (void cdecl delete(void *))
x32test.obj(x32test)
 Error 42: Symbol Undefined _memset
x32test.obj(x32test)
 Error 42: Symbol Undefined ??_P YAPAXI Z (void *cdecl new[](unsigned ))
x32test.obj(x32test)
 Error 42: Symbol Undefined _printf
x32test.obj(x32test)
 Error 42: Symbol Undefined _scanf
x32test.obj(x32test)
 Error 42: Symbol Undefined _dos_gettime
x32test.obj(x32test)
 Error 42: Symbol Undefined _dos_getdate
c:\dm\bin\..\x32\lib\x32v.lib(coreleft)
 Error 42: Symbol Undefined _intdos

--- errorlevel 24

Is there any workaround to this?
Oct 01 2007
parent Walter Bright <newshound1 digitalmars.com> writes:
Neo wrote:
 I had no problem with 8.49 to build a simple x32 program:
   dmc -mx -o+speed x32test.cpp x32v.lib
 
 But with 8.50, I get:
 
 link cx+x32test,x32test,,x32v/noi;
 OPTLINK (R) for Win32  Release 8.00.1
 Copyright (C) Digital Mars 1989-2004  All rights reserved.
 SDX.lib
  Warning 2: File Not Found SDX.lib

 --- errorlevel 24
 
 Is there any workaround to this?

Is sdx.lib on your computer?
Nov 04 2007