Archives
D Programming
DD.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++ - Using std::string?
Hello everyone! :-D OK, here be my code: ----------------- #include <stdlib.h> #include <string.h> int main() { string hello("Hellawz!!1"); } ----------------- And here's my command line: dmc -mtd -IC:\dm\stlport\stlport dost.cpp This is what I get on compile: ----------------- Z:\dost>dmc -mtd -IC:\dm\stlport\stlport dost.cpp string hello("Hellawz!!1"); ^ dost.cpp(6) : Error: undefined identifier 'string' string hello("Hellawz!!1"); ^ dost.cpp(6) : Warning 6: value of expression is not used --- errorlevel 1 Z:\dost> ----------------- I tried using std::string, using namespace std, nothing worked... anyone know how to fix it? Thanks! ;-) Oct 14 2005
Kixdemp wrote:#include <string.h> Oct 15 2005
Now I get these errors: ------------------------ 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' using _STLP_VENDOR_CSTD::fwprintf; ^ c:\dm\stlport\stlport\cwchar(210) : Error: undefined identifier 'fwprintf' Fatal error: too many errors --- errorlevel 1 ------------------------ Do you know how I can fix them? Thanks very much! ;-) In article <diqg87$1q4n$1 digitaldaemon.com>, Bertel Brander says...Kixdemp wrote:#include <string.h> Oct 15 2005
Wait a minute... I don't get any of that if I remove the "-mtd" from the command line... I need this program to work on pure MS-DOS... do you know how to fix it? Thanks! ;-) Oct 15 2005
"Kixdemp" <Kixdemp_member pathlink.com> wrote in message news:dirc31$2g9a$1 digitaldaemon.com...Wait a minute... I don't get any of that if I remove the "-mtd" from the Oct 15 2005
In article <dirh1n$2k4d$1 digitaldaemon.com>, Walter Bright says..."Kixdemp" <Kixdemp_member pathlink.com> wrote in message news:dirc31$2g9a$1 digitaldaemon.com...Wait a minute... I don't get any of that if I remove the "-mtd" from the Oct 15 2005
|