www.digitalmars.com         C & C++   DMDScript  

c++.command-line - 8.52 + stlport = no joy

reply Jason King <jhking airmail.net> writes:
Posted this to STLPort yesterday, but got no replies.  Maybe more eyes 
in this group.  Looks related to "compiling without iostream".
Running Win 7 64 bit. Have dmc from CD.  Upgraded to 852.  Am trying to use
stlport.

rem avoid other toolchains
set include=
set lib=
rem compiling sample app in \dm\stlport
dmc hello -I\dm\stlport\stlport

using _STLP_VENDOR_CSTD::wint_t;
                               ^
c:\dm\stlport\stlport\cwchar(167) : Error: undefined identifier 'wint_t'
using _STLP_VENDOR_CSTD::fgetwc;
                               ^
c:\dm\stlport\stlport\cwchar(199) : Error: undefined identifier 'fgetwc'
using _STLP_VENDOR_CSTD::fgetws;
                               ^
c:\dm\stlport\stlport\cwchar(200) : Error: undefined identifier 'fgetws'
using _STLP_VENDOR_CSTD::fputwc;
                               ^
c:\dm\stlport\stlport\cwchar(201) : Error: undefined identifier 'fputwc'
using _STLP_VENDOR_CSTD::fputws;
                               ^
c:\dm\stlport\stlport\cwchar(202) : Error: undefined identifier 'fputws'
Fatal error: too many errors

I can find most of these refs in wchar.h, don't know why dmc can't.

Tried building stlport
smake -f dm.mak


--- errorlevel 1
     mkdir ..\lib
     mkdir ..\build
     mkdir ..\build\static
     mkdir ..\build\static\release
     mkdir ..\build\static\debug
     mkdir ..\build\static\stldebug
     mkdir ..\build\staticx
     mkdir ..\build\staticx\release
     mkdir ..\build\staticx\debug
     mkdir ..\build\staticx\stldebug
     mkdir ..\build\dynamic
     mkdir ..\build\dynamic\release
     mkdir ..\build\dynamic\debug
     mkdir ..\build\dynamic\stldebug
     mkdir ..\build\sdynamic
     mkdir ..\build\sdynamic\release
     mkdir ..\build\sdynamic\debug
     mkdir ..\build\sdynamic\stldebug
     dmc -cpp -c -o"..\build\static\release\c_locale.obj" -Ae -Ar 
-DSTRICT -D__BUILDING_STLPORT -I../stlport -o+all -Nc -D_MT "c_locale.c"
using _STLP_VENDOR_CSTD::wmemcmp;
                                ^
../stlport\cwchar(274) : Error: undefined identifier 'wmemcmp'
--- errorlevel 1

My sc.ini looks like so:
[Version]
version=7.51 Build 020

[Environment]
PATH=%PATH%;"% P%\..\bin"
BIN="% P%\..\bin"
INCLUDE="% P%\..\include";"% P%\..\mfc\include";"% P%\..\stl";%INCLUDE%
LIB="% P%\..\lib";"% P%\..\mfc\lib";%LIB%
HELP="% P%\..\help"
Aug 19 2011
next sibling parent Walter Bright <newshound2 digitalmars.com> writes:
On 8/19/2011 2:47 AM, Jason King wrote:
 dmc hello -I\dm\stlport\stlport

Try compiling with -cpp switch.
Aug 25 2011
prev sibling parent reply artcat6 <services synesis.com.au> writes:
Content-Type: text/plain

Jason King Wrote:

 Posted this to STLPort yesterday, but got no replies.  Maybe more eyes 
 in this group.  Looks related to "compiling without iostream".
 Running Win 7 64 bit. Have dmc from CD.  Upgraded to 852.  Am trying to use
 stlport.
 
 rem avoid other toolchains
 set include=
 set lib=
 rem compiling sample app in \dm\stlport
 dmc hello -I\dm\stlport\stlport
 
 using _STLP_VENDOR_CSTD::wint_t;
                                ^
 c:\dm\stlport\stlport\cwchar(167) : Error: undefined identifier 'wint_t'
 using _STLP_VENDOR_CSTD::fgetwc;
                                ^
 c:\dm\stlport\stlport\cwchar(199) : Error: undefined identifier 'fgetwc'
 using _STLP_VENDOR_CSTD::fgetws;
                                ^
 c:\dm\stlport\stlport\cwchar(200) : Error: undefined identifier 'fgetws'
 using _STLP_VENDOR_CSTD::fputwc;
                                ^
 c:\dm\stlport\stlport\cwchar(201) : Error: undefined identifier 'fputwc'
 using _STLP_VENDOR_CSTD::fputws;
                                ^
 c:\dm\stlport\stlport\cwchar(202) : Error: undefined identifier 'fputws'
 Fatal error: too many errors
 
 I can find most of these refs in wchar.h, don't know why dmc can't.
 
 Tried building stlport
 smake -f dm.mak
 
 
 --- errorlevel 1
      mkdir ..\lib
      mkdir ..\build
      mkdir ..\build\static
      mkdir ..\build\static\release
      mkdir ..\build\static\debug
      mkdir ..\build\static\stldebug
      mkdir ..\build\staticx
      mkdir ..\build\staticx\release
      mkdir ..\build\staticx\debug
      mkdir ..\build\staticx\stldebug
      mkdir ..\build\dynamic
      mkdir ..\build\dynamic\release
      mkdir ..\build\dynamic\debug
      mkdir ..\build\dynamic\stldebug
      mkdir ..\build\sdynamic
      mkdir ..\build\sdynamic\release
      mkdir ..\build\sdynamic\debug
      mkdir ..\build\sdynamic\stldebug
      dmc -cpp -c -o"..\build\static\release\c_locale.obj" -Ae -Ar 
 -DSTRICT -D__BUILDING_STLPORT -I../stlport -o+all -Nc -D_MT "c_locale.c"
 using _STLP_VENDOR_CSTD::wmemcmp;
                                 ^
 ../stlport\cwchar(274) : Error: undefined identifier 'wmemcmp'
 --- errorlevel 1
 
 My sc.ini looks like so:
 [Version]
 version=7.51 Build 020
 
 [Environment]
 PATH=%PATH%;"% P%\..\bin"
 BIN="% P%\..\bin"
 INCLUDE="% P%\..\include";"% P%\..\mfc\include";"% P%\..\stl";%INCLUDE%
 LIB="% P%\..\lib";"% P%\..\mfc\lib";%LIB%
 HELP="% P%\..\help"
 
 
 
 
 
 

Feb 26 2012
parent artcat6 <services synesis.com.au> writes:
Content-Type: text/plain

artcat6 Wrote:

 Jason King Wrote:
 
 Posted this to STLPort yesterday, but got no replies.  Maybe more eyes 
 in this group.  Looks related to "compiling without iostream".
 Running Win 7 64 bit. Have dmc from CD.  Upgraded to 852.  Am trying to use
 stlport.
 
 rem avoid other toolchains
 set include=
 set lib=
 rem compiling sample app in \dm\stlport
 dmc hello -I\dm\stlport\stlport
 
 using _STLP_VENDOR_CSTD::wint_t;
                                ^
 c:\dm\stlport\stlport\cwchar(167) : Error: undefined identifier 'wint_t'
 using _STLP_VENDOR_CSTD::fgetwc;
                                ^
 c:\dm\stlport\stlport\cwchar(199) : Error: undefined identifier 'fgetwc'
 using _STLP_VENDOR_CSTD::fgetws;
                                ^
 c:\dm\stlport\stlport\cwchar(200) : Error: undefined identifier 'fgetws'
 using _STLP_VENDOR_CSTD::fputwc;
                                ^
 c:\dm\stlport\stlport\cwchar(201) : Error: undefined identifier 'fputwc'
 using _STLP_VENDOR_CSTD::fputws;
                                ^
 c:\dm\stlport\stlport\cwchar(202) : Error: undefined identifier 'fputws'
 Fatal error: too many errors
 
 I can find most of these refs in wchar.h, don't know why dmc can't.
 
 Tried building stlport
 smake -f dm.mak
 
 
 --- errorlevel 1
      mkdir ..\lib
      mkdir ..\build
      mkdir ..\build\static
      mkdir ..\build\static\release
      mkdir ..\build\static\debug
      mkdir ..\build\static\stldebug
      mkdir ..\build\staticx
      mkdir ..\build\staticx\release
      mkdir ..\build\staticx\debug
      mkdir ..\build\staticx\stldebug
      mkdir ..\build\dynamic
      mkdir ..\build\dynamic\release
      mkdir ..\build\dynamic\debug
      mkdir ..\build\dynamic\stldebug
      mkdir ..\build\sdynamic
      mkdir ..\build\sdynamic\release
      mkdir ..\build\sdynamic\debug
      mkdir ..\build\sdynamic\stldebug
      dmc -cpp -c -o"..\build\static\release\c_locale.obj" -Ae -Ar 
 -DSTRICT -D__BUILDING_STLPORT -I../stlport -o+all -Nc -D_MT "c_locale.c"
 using _STLP_VENDOR_CSTD::wmemcmp;
                                 ^
 ../stlport\cwchar(274) : Error: undefined identifier 'wmemcmp'
 --- errorlevel 1
 
 My sc.ini looks like so:
 [Version]
 version=7.51 Build 020
 
 [Environment]
 PATH=%PATH%;"% P%\..\bin"
 BIN="% P%\..\bin"
 INCLUDE="% P%\..\include";"% P%\..\mfc\include";"% P%\..\stl";%INCLUDE%
 LIB="% P%\..\lib";"% P%\..\mfc\lib";%LIB%
 HELP="% P%\..\help"
 
 
 
 
 
 


Feb 26 2012