www.digitalmars.com         C & C++   DMDScript  

c++.stl.port - DMC 8.38 + STLport 4.5.3 + DOSX

reply Salvador Ducros <Salvador_member pathlink.com> writes:
Hello all,

I downloaded the latest version of the DM compiler and STLport from the
DM website. I've been trying to compile a DOSX program I wrote a while ago
which I developed using DM 8.29n. I'm having difficulty compiling now using
the latest version of compiler & STLport.

The problem only occurs when I use the '-mx' switch. Compiling the test
code below produces the following output:

-->
#include <string>
#include <stdio.h>

int main( void ) {
fputs( "Hello World", stdout );
return 0;
}
<--

dmc -mx test.cxx x32.lib

-->
using _STLP_VENDOR_CSTD::fgetwc;
^
C:\DM\BIN\..\stlport\stlport\cwchar(199) : Error: undefined identifier 'fgetwc'
using _STLP_VENDOR_CSTD::fgetws;
^
C:\DM\BIN\..\stlport\stlport\cwchar(200) : Error: undefined identifier 'fgetws'
using _STLP_VENDOR_CSTD::fputwc;
^
C:\DM\BIN\..\stlport\stlport\cwchar(201) : Error: undefined identifier 'fputwc'
using _STLP_VENDOR_CSTD::fputws;
^
C:\DM\BIN\..\stlport\stlport\cwchar(202) : Error: undefined identifier 'fputws'
using _STLP_VENDOR_CSTD::fwprintf;
^
C:\DM\BIN\..\stlport\stlport\cwchar(210) : Error: undefined identifier 'fwprintf
'
Fatal error: too many errors
<--

Excluding '-mx' from the dmc command line allows me to compile, however,
as I understood the documentation the '-mx' is required in order to build
a DOSX program. Any input is appreciated,

TIA
Salvador Ducros
Dec 10 2003
parent "Walter" <walter digitalmars.com> writes:
The "wide character" functions are not implemented for the DOSX memory
model, since it uses the DOS subsystem and the DOS subsystem knows nothing
about unicode. Unfortunately, stlport seems to rely on unicode.


"Salvador Ducros" <Salvador_member pathlink.com> wrote in message
news:br9138$82n$1 digitaldaemon.com...
 Hello all,

 I downloaded the latest version of the DM compiler and STLport from the
 DM website. I've been trying to compile a DOSX program I wrote a while ago
 which I developed using DM 8.29n. I'm having difficulty compiling now
using
 the latest version of compiler & STLport.

 The problem only occurs when I use the '-mx' switch. Compiling the test
 code below produces the following output:

 -->
 #include <string>
 #include <stdio.h>

 int main( void ) {
 fputs( "Hello World", stdout );
 return 0;
 }
 <--

 dmc -mx test.cxx x32.lib

 -->
 using _STLP_VENDOR_CSTD::fgetwc;
 ^
 C:\DM\BIN\..\stlport\stlport\cwchar(199) : Error: undefined identifier
'fgetwc'
 using _STLP_VENDOR_CSTD::fgetws;
 ^
 C:\DM\BIN\..\stlport\stlport\cwchar(200) : Error: undefined identifier
'fgetws'
 using _STLP_VENDOR_CSTD::fputwc;
 ^
 C:\DM\BIN\..\stlport\stlport\cwchar(201) : Error: undefined identifier
'fputwc'
 using _STLP_VENDOR_CSTD::fputws;
 ^
 C:\DM\BIN\..\stlport\stlport\cwchar(202) : Error: undefined identifier
'fputws'
 using _STLP_VENDOR_CSTD::fwprintf;
 ^
 C:\DM\BIN\..\stlport\stlport\cwchar(210) : Error: undefined identifier
'fwprintf
 '
 Fatal error: too many errors
 <--

 Excluding '-mx' from the dmc command line allows me to compile, however,
 as I understood the documentation the '-mx' is required in order to build
 a DOSX program. Any input is appreciated,

 TIA
 Salvador Ducros
Dec 12 2003