c++ - i cannot compile
- wong (11/11) Aug 18 2002 i can not compile, it show below error
- Walter (6/17) Aug 18 2002 Try adding the switch:
- wong (66/91) Aug 18 2002 thanks
- Walter (6/103) Aug 19 2002 Sorry, I goofed. The files you are looking for are in \dm\stlport\stlpor...
- wong (15/40) Aug 18 2002 i test with my other hello2.cpp i still cannot compile
- Cesar Rabak (14/22) Aug 19 2002 Walter,
- Walter (4/10) Aug 19 2002 Yeah, you're right. My oops.
- Cesar Rabak (9/23) Aug 19 2002 You're being too tough on yourself! I would then try to point to over
- Walter (5/9) Aug 19 2002 I have uploaded a fixed version of the file now. STLport is pretty
- wong (9/18) Aug 19 2002 i have download and unzip the stlport file in
- Walter (4/11) Aug 19 2002 I uploaded the prebuilt binaries for downloading,
- wong (47/63) Aug 19 2002 i have install the prebuild bin in my c:\dm\bin and lib
- Jan Knepper (3/71) Aug 19 2002 I think you will have to include the prebuild .lib file into you compile...
- wong (11/93) Aug 19 2002 i have try
- Jan Knepper (4/10) Aug 19 2002 Are you sure that is sccrtp70.dll
- Walter (6/88) Aug 19 2002 Yes; from the \dm\stlport\readme.txt:
- Cesar Rabak (6/17) Aug 20 2002 Great! Thanks for all your indefatigable work to ameliorate DMC++ !!
- wong (4/21) Aug 20 2002 me still can not compile ler.. anyone can help ?
- Walter (3/4) Aug 20 2002 What exactly are you typing in as a command, and what is the result?
- wong (37/41) Aug 20 2002 hi walter
- Jan Knepper (4/49) Aug 20 2002 As before... You will need to include the .lib file for stlport into you...
- wong (7/62) Aug 20 2002 i can compile now,
- Jan Knepper (6/75) Aug 20 2002 Either...
- wong (19/97) Aug 20 2002 got error when with -ND
- Jan Knepper (4/109) Aug 20 2002 You should NOT use -ND!
- wong (9/121) Aug 20 2002 then how to i compile ?
- Jan Knepper (4/130) Aug 20 2002 C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport \dm\lib\stlport_dm.lib
- wong (13/145) Aug 20 2002 i download from the site prebuild binary.
- Jan Knepper (7/10) Aug 21 2002 Recompiling with VC++ will not do you much good. You will have to recomp...
i can not compile, it show below error C:\cpp>sc hello.cpp Fatal error: unable to open input file 'iostream' --- errorlevel 1 hello.cpp #include <iostream> int main() { std::cout << "hello,world !" << std::endl ; return 0; }
Aug 18 2002
Try adding the switch: -I\dm\stlport Further instructions are in the file: \dm\stlport\readme.txt "wong" <flwong eads.com.my> wrote in message news:ajpjtl$2g0b$1 digitaldaemon.com...i can not compile, it show below error C:\cpp>sc hello.cpp Fatal error: unable to open input file 'iostream' --- errorlevel 1 hello.cpp #include <iostream> int main() { std::cout << "hello,world !" << std::endl ; return 0; }
Aug 18 2002
thanks i can compile hello.cpp now.. but the s3.cpp it show .. C:\dm\include>dir io*.h Volume in drive C is DISK1PART01 Volume Serial Number is 26D1-2532 Directory of C:\dm\include 03/17/2001 12:15a 3,946 IO.H 01/02/1997 07:16a 4,952 IOMANIP.H 03/17/2001 12:15a 141 IOS.H 01/02/1997 07:16a 25,218 IOSTREAM.H 4 File(s) 34,257 bytes 0 Dir(s) 68,322,164,736 bytes free C:\dm\bin>sc s3.cpp Fatal error: unable to open input file 'iomanip' --- errorlevel 1 C:\dm\bin>sc s3.cpp -I\dm\stlport Fatal error: unable to open input file 'iomanip' --- errorlevel 1 #include <algorithm> #include <iomanip> #include <ios> #include <iostream> #include <string> #include <vector> using std::cin; using std::sort; using std::cout; using std::streamsize; using std::endl; using std::string; using std::precision; using std::vector; using std::setprecision; int main() { cout << " please enter your first name: " ; string name ; cin >> name ; cout << "hello, " << name << " !" << endl; cout << "please enter your midterm and final exam grades: "; double midterm, final ; cin >> midterm >> final; cout << " enter all your homework grades, " " followed by end-of-file: "; vector<double> homework ; double x ; while (cin >> x ) homework.push_back(x) typedef vector<double>::size_type vic_sz; vec_sz size = homework.size(); if (size == 0) { cout << endl << " You must enter your grades. " "please try again. " <<endl; return 1; } sort(homework.begin(), homework.end()); vec_sz mid= size/2; double median; median = (size % 2 = 0) ? (homework[mid] + homework[mid-1]_ /2 : median= homework[mid]; streamsize prec = cout.precision(); cout << "Your final grade is " << setprecision(30 << 0.2 * midterm + 0.4 * final + 0.4 * median << setprecision(prec) << endl; return 0; } "Walter" <walter digitalmars.com> wrote in message news:ajpmet$2igs$1 digitaldaemon.com...Try adding the switch: -I\dm\stlport Further instructions are in the file: \dm\stlport\readme.txt "wong" <flwong eads.com.my> wrote in message news:ajpjtl$2g0b$1 digitaldaemon.com...i can not compile, it show below error C:\cpp>sc hello.cpp Fatal error: unable to open input file 'iostream' --- errorlevel 1 hello.cpp #include <iostream> int main() { std::cout << "hello,world !" << std::endl ; return 0; }
Aug 18 2002
Sorry, I goofed. The files you are looking for are in \dm\stlport\stlport, so you need to add the switch -I\dm\stlport\stlport to the compile. "wong" <flwong eads.com.my> wrote in message news:ajpo8j$2kal$1 digitaldaemon.com...thanks i can compile hello.cpp now.. but the s3.cpp it show .. C:\dm\include>dir io*.h Volume in drive C is DISK1PART01 Volume Serial Number is 26D1-2532 Directory of C:\dm\include 03/17/2001 12:15a 3,946 IO.H 01/02/1997 07:16a 4,952 IOMANIP.H 03/17/2001 12:15a 141 IOS.H 01/02/1997 07:16a 25,218 IOSTREAM.H 4 File(s) 34,257 bytes 0 Dir(s) 68,322,164,736 bytes free C:\dm\bin>sc s3.cpp Fatal error: unable to open input file 'iomanip' --- errorlevel 1 C:\dm\bin>sc s3.cpp -I\dm\stlport Fatal error: unable to open input file 'iomanip' --- errorlevel 1 #include <algorithm> #include <iomanip> #include <ios> #include <iostream> #include <string> #include <vector> using std::cin; using std::sort; using std::cout; using std::streamsize; using std::endl; using std::string; using std::precision; using std::vector; using std::setprecision; int main() { cout << " please enter your first name: " ; string name ; cin >> name ; cout << "hello, " << name << " !" << endl; cout << "please enter your midterm and final exam grades: "; double midterm, final ; cin >> midterm >> final; cout << " enter all your homework grades, " " followed by end-of-file: "; vector<double> homework ; double x ; while (cin >> x ) homework.push_back(x) typedef vector<double>::size_type vic_sz; vec_sz size = homework.size(); if (size == 0) { cout << endl << " You must enter your grades. " "please try again. " <<endl; return 1; } sort(homework.begin(), homework.end()); vec_sz mid= size/2; double median; median = (size % 2 = 0) ? (homework[mid] + homework[mid-1]_ /2 : median= homework[mid]; streamsize prec = cout.precision(); cout << "Your final grade is " << setprecision(30 << 0.2 * midterm + 0.4 * final + 0.4 * median << setprecision(prec) << endl; return 0; } "Walter" <walter digitalmars.com> wrote in message news:ajpmet$2igs$1 digitaldaemon.com...Try adding the switch: -I\dm\stlport Further instructions are in the file: \dm\stlport\readme.txt "wong" <flwong eads.com.my> wrote in message news:ajpjtl$2g0b$1 digitaldaemon.com...i can not compile, it show below error C:\cpp>sc hello.cpp Fatal error: unable to open input file 'iostream' --- errorlevel 1 hello.cpp #include <iostream> int main() { std::cout << "hello,world !" << std::endl ; return 0; }
Aug 19 2002
still the same erorr message there is not stlport folder . only c:\dm\stl but -I\dm\stl also not let me compile "Walter" <walter digitalmars.com> wrote in message news:ajr6os$1bs4$1 digitaldaemon.com...Sorry, I goofed. The files you are looking for are in \dm\stlport\stlport, so you need to add the switch -I\dm\stlport\stlport to the compile. "wong" <flwong eads.com.my> wrote in message news:ajpo8j$2kal$1 digitaldaemon.com...homework[mid-1]_thanks i can compile hello.cpp now.. but the s3.cpp it show .. C:\dm\include>dir io*.h Volume in drive C is DISK1PART01 Volume Serial Number is 26D1-2532 Directory of C:\dm\include 03/17/2001 12:15a 3,946 IO.H 01/02/1997 07:16a 4,952 IOMANIP.H 03/17/2001 12:15a 141 IOS.H 01/02/1997 07:16a 25,218 IOSTREAM.H 4 File(s) 34,257 bytes 0 Dir(s) 68,322,164,736 bytes free C:\dm\bin>sc s3.cpp Fatal error: unable to open input file 'iomanip' --- errorlevel 1 C:\dm\bin>sc s3.cpp -I\dm\stlport Fatal error: unable to open input file 'iomanip' --- errorlevel 1 #include <algorithm> #include <iomanip> #include <ios> #include <iostream> #include <string> #include <vector> using std::cin; using std::sort; using std::cout; using std::streamsize; using std::endl; using std::string; using std::precision; using std::vector; using std::setprecision; int main() { cout << " please enter your first name: " ; string name ; cin >> name ; cout << "hello, " << name << " !" << endl; cout << "please enter your midterm and final exam grades: "; double midterm, final ; cin >> midterm >> final; cout << " enter all your homework grades, " " followed by end-of-file: "; vector<double> homework ; double x ; while (cin >> x ) homework.push_back(x) typedef vector<double>::size_type vic_sz; vec_sz size = homework.size(); if (size == 0) { cout << endl << " You must enter your grades. " "please try again. " <<endl; return 1; } sort(homework.begin(), homework.end()); vec_sz mid= size/2; double median; median = (size % 2 = 0) ? (homework[mid] +/2 : median= homework[mid]; streamsize prec = cout.precision(); cout << "Your final grade is " << setprecision(30 << 0.2 * midterm + 0.4 * final + 0.4 * median << setprecision(prec) << endl; return 0; } "Walter" <walter digitalmars.com> wrote in message news:ajpmet$2igs$1 digitaldaemon.com...Try adding the switch: -I\dm\stlport Further instructions are in the file: \dm\stlport\readme.txt "wong" <flwong eads.com.my> wrote in message news:ajpjtl$2g0b$1 digitaldaemon.com...i can not compile, it show below error C:\cpp>sc hello.cpp Fatal error: unable to open input file 'iostream' --- errorlevel 1 hello.cpp #include <iostream> int main() { std::cout << "hello,world !" << std::endl ; return 0; }
Aug 19 2002
"wong" <flwong eads.com.my> wrote in message news:ajs5jt$2ljt$1 digitaldaemon.com...still the same erorr message there is not stlport folder . only c:\dm\stl but -I\dm\stl also not let me compileAh, you need to download STLport from www.digitalmars.com/download/freecompiler.html
Aug 19 2002
already download and install. but it need to compile ? i in win2000 pc , no visual c ++ "Walter" <walter digitalmars.com> wrote in message news:ajsaj1$2qhj$1 digitaldaemon.com..."wong" <flwong eads.com.my> wrote in message news:ajs5jt$2ljt$1 digitaldaemon.com...still the same erorr message there is not stlport folder . only c:\dm\stl but -I\dm\stl also not let me compileAh, you need to download STLport from www.digitalmars.com/download/freecompiler.html
Aug 19 2002
i test with my other hello2.cpp i still cannot compile C:\dm\bin>sc hello2.cpp -I\dm\stlport Fatal error: unable to open input file 'iostream' --- errorlevel 1 my hello2.cpp #include <iostream> int main() { std::cout << "hello,world !" << std::endl ; return 0; } thanks wong "Walter" <walter digitalmars.com> wrote in message news:ajpmet$2igs$1 digitaldaemon.com...Try adding the switch: -I\dm\stlport Further instructions are in the file: \dm\stlport\readme.txt "wong" <flwong eads.com.my> wrote in message news:ajpjtl$2g0b$1 digitaldaemon.com...i can not compile, it show below error C:\cpp>sc hello.cpp Fatal error: unable to open input file 'iostream' --- errorlevel 1 hello.cpp #include <iostream> int main() { std::cout << "hello,world !" << std::endl ; return 0; }
Aug 18 2002
Walter wrote:Try adding the switch: -I\dm\stlport Further instructions are in the file: \dm\stlport\readme.txtWalter, Although this may look like trying to teach the priest to pray, I'm afraid the right advice is to add "-I\dm\stlport\stlport". BTW, I take profit of the observation to try to grasp the reason for it: it has to be more than an occasional typo as the directory structure _and_ the \dm\stlport\readme.txt file are in sync with this! Can you or Christof, perhaps, fulfill this curiosity of mineš? -- Cesar Rabak GNU/Linux User 52247. Get counted: http://counter.li.org/ [1] I hope that the crowd of the other two persons interested also get delighted ;-D
Aug 19 2002
"Cesar Rabak" <csrabak uol.com.br> wrote in message news:3D6116D4.122F2B99 uol.com.br...Although this may look like trying to teach the priest to pray, I'm afraid the right advice is to add "-I\dm\stlport\stlport".Yeah, you're right. My oops.BTW, I take profit of the observation to try to grasp the reason for it: it has to be more than an occasional typo as the directory structure _and_ the \dm\stlport\readme.txt file are in sync with this! Can you or Christof, perhaps, fulfill this curiosity of mineš?Sheer stupidity? <g> Don't blame Christof, I wrote that file.
Aug 19 2002
Walter wrote:"Cesar Rabak" <csrabak uol.com.br> wrote in message news:3D6116D4.122F2B99 uol.com.br...You're being too tough on yourself! I would then try to point to over the hours intellectual exhaustion (at least it sounds better isn't it? ;-) [] -- Cesar Rabak GNU/Linux User 52247. Get counted: http://counter.li.org/Although this may look like trying to teach the priest to pray, I'm afraid the right advice is to add "-I\dm\stlport\stlport".Yeah, you're right. My oops.BTW, I take profit of the observation to try to grasp the reason for it: it has to be more than an occasional typo as the directory structure _and_ the \dm\stlport\readme.txt file are in sync with this! Can you or Christof, perhaps, fulfill this curiosity of mineš?Sheer stupidity? <g> Don't blame Christof, I wrote that file.
Aug 19 2002
"Cesar Rabak" <csrabak uol.com.br> wrote in message news:3D61998F.AC8A504A uol.com.br...I have uploaded a fixed version of the file now. STLport is pretty complicated, and doesn't need bugs in the readme to make things even more confusing. Thanks for pointing out the error so it could get fixed.Sheer stupidity? <g> Don't blame Christof, I wrote that file.You're being too tough on yourself! I would then try to point to over the hours intellectual exhaustion (at least it sounds better isn't it? ;-)
Aug 19 2002
i have download and unzip the stlport file in dm\stlport folder but still can not compile. i have read the readme, i don have smake to compiler it to dll. help please thanks wong "Walter" <walter digitalmars.com> wrote in message news:ajs6ce$2mfg$1 digitaldaemon.com..."Cesar Rabak" <csrabak uol.com.br> wrote in message news:3D61998F.AC8A504A uol.com.br...I have uploaded a fixed version of the file now. STLport is pretty complicated, and doesn't need bugs in the readme to make things even more confusing. Thanks for pointing out the error so it could get fixed.Sheer stupidity? <g> Don't blame Christof, I wrote that file.You're being too tough on yourself! I would then try to point to over the hours intellectual exhaustion (at least it sounds better isn't it? ;-)
Aug 19 2002
"wong" <flwong eads.com.my> wrote in message news:ajs6vq$2n0j$1 digitaldaemon.com...i have download and unzip the stlport file in dm\stlport folder but still can not compile. i have read the readme, i don have smake to compiler it to dll. help please thanks wongI uploaded the prebuilt binaries for downloading, www.digitalmars.com/download/freecompiler.html
Aug 19 2002
i have install the prebuild bin in my c:\dm\bin and lib but i still can not compile the simple script below. hello2.cpp #include <iostream> int main() { std::cout << "hello,world !" << std::endl ; return 0; } error message show C:\dm\bin>sc hello2.cpp link hello2,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved hello2.obj(hello2) Error 42: Symbol Undefined ?_M_throw_failure ios_base IAEXXZ (void syscall ios _base::_M_throw_failure(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1ios_base UAE XZ (syscall ios_base::~ios_base(voi d )) hello2.obj(hello2) Error 42: Symbol Undefined ??0Init ios_base QAE XZ (syscall ios_base::Init::In it(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??0_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::~_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1Init ios_base QAE XZ (syscall ios_base::Init::~I nit(void )) hello2.obj(hello2) Error 42: Symbol Undefined ?_STLP_cout 3V?$basic_ostream DV?$char_traits D A (basic_ostream<char ,char_traits<char > > _STLP_cout) --- errorlevel 7 thanks wong "Walter" <walter digitalmars.com> wrote in message news:ajsb5v$2r5t$1 digitaldaemon.com..."wong" <flwong eads.com.my> wrote in message news:ajs6vq$2n0j$1 digitaldaemon.com...i have download and unzip the stlport file in dm\stlport folder but still can not compile. i have read the readme, i don have smake to compiler it to dll. help please thanks wongI uploaded the prebuilt binaries for downloading, www.digitalmars.com/download/freecompiler.html
Aug 19 2002
I think you will have to include the prebuild .lib file into you compile command line. wong wrote:i have install the prebuild bin in my c:\dm\bin and lib but i still can not compile the simple script below. hello2.cpp #include <iostream> int main() { std::cout << "hello,world !" << std::endl ; return 0; } error message show C:\dm\bin>sc hello2.cpp link hello2,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved hello2.obj(hello2) Error 42: Symbol Undefined ?_M_throw_failure ios_base IAEXXZ (void syscall ios _base::_M_throw_failure(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1ios_base UAE XZ (syscall ios_base::~ios_base(voi d )) hello2.obj(hello2) Error 42: Symbol Undefined ??0Init ios_base QAE XZ (syscall ios_base::Init::In it(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??0_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::~_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1Init ios_base QAE XZ (syscall ios_base::Init::~I nit(void )) hello2.obj(hello2) Error 42: Symbol Undefined ?_STLP_cout 3V?$basic_ostream DV?$char_traits D A (basic_ostream<char ,char_traits<char > > _STLP_cout) --- errorlevel 7 thanks wong "Walter" <walter digitalmars.com> wrote in message news:ajsb5v$2r5t$1 digitaldaemon.com..."wong" <flwong eads.com.my> wrote in message news:ajs6vq$2n0j$1 digitaldaemon.com...i have download and unzip the stlport file in dm\stlport folder but still can not compile. i have read the readme, i don have smake to compiler it to dll. help please thanks wongI uploaded the prebuilt binaries for downloading, www.digitalmars.com/download/freecompiler.html
Aug 19 2002
i have try sc hello2.cpp -I\dm\stlport\stlport \dm\lib\stlport_dm.lib -D_DLL and sc hello -I\dm\stlport\stlport \dm\lib\stlport_dm.lib yes the file is compile to exe , but when run the hello2.exe it show error the dynamic link library sccrtp70.dll could not found ? wong "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D61C07A.8B1B8442 smartsoft.cc...I think you will have to include the prebuild .lib file into you compilecommandline. wong wrote:syscalli have install the prebuild bin in my c:\dm\bin and lib but i still can not compile the simple script below. hello2.cpp #include <iostream> int main() { std::cout << "hello,world !" << std::endl ; return 0; } error message show C:\dm\bin>sc hello2.cpp link hello2,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved hello2.obj(hello2) Error 42: Symbol Undefined ?_M_throw_failure ios_base IAEXXZ (voidios _base::_M_throw_failure(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1ios_base UAE XZ (syscall ios_base::~ios_base(voi d )) hello2.obj(hello2) Error 42: Symbol Undefined ??0Init ios_base QAE XZ (syscall ios_base::Init::In it(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??0_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::~_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1Init ios_base QAE XZ (syscall ios_base::Init::~I nit(void )) hello2.obj(hello2) Error 42: Symbol Undefined ?_STLP_cout 3V?$basic_ostream DV?$char_traits D A (basic_ostream<char ,char_traits<char > > _STLP_cout) --- errorlevel 7 thanks wong "Walter" <walter digitalmars.com> wrote in message news:ajsb5v$2r5t$1 digitaldaemon.com..."wong" <flwong eads.com.my> wrote in message news:ajs6vq$2n0j$1 digitaldaemon.com...i have download and unzip the stlport file in dm\stlport folder but still can not compile. i have read the readme, i don have smake to compiler it to dll. help please thanks wongI uploaded the prebuilt binaries for downloading, www.digitalmars.com/download/freecompiler.html
Aug 19 2002
wong wrote:i have try sc hello2.cpp -I\dm\stlport\stlport \dm\lib\stlport_dm.lib -D_DLL and sc hello -I\dm\stlport\stlport \dm\lib\stlport_dm.lib yes the file is compile to exe , but when run the hello2.exe it show error the dynamic link library sccrtp70.dll could not found ?Are you sure that is sccrtp70.dll I only know about sccrt70.dll and sccrt70d.dll Jan
Aug 19 2002
oh..sorry type wrong is sccrt70.dll any idea how to solve ? "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D61D24A.659796E0 smartsoft.cc...wong wrote:errori have try sc hello2.cpp -I\dm\stlport\stlport \dm\lib\stlport_dm.lib -D_DLL and sc hello -I\dm\stlport\stlport \dm\lib\stlport_dm.lib yes the file is compile to exe , but when run the hello2.exe it showthe dynamic link library sccrtp70.dll could not found ?Are you sure that is sccrtp70.dll I only know about sccrt70.dll and sccrt70d.dll Jan
Aug 19 2002
That file comes with the CD version of DMC++. Try linking with the non-DLL libs. -Walter "wong" <flwong eads.com.my> wrote in message news:ajsk76$3ec$1 digitaldaemon.com...oh..sorry type wrong is sccrt70.dll any idea how to solve ? "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D61D24A.659796E0 smartsoft.cc...wong wrote:errori have try sc hello2.cpp -I\dm\stlport\stlport \dm\lib\stlport_dm.lib -D_DLL and sc hello -I\dm\stlport\stlport \dm\lib\stlport_dm.lib yes the file is compile to exe , but when run the hello2.exe it showthe dynamic link library sccrtp70.dll could not found ?Are you sure that is sccrtp70.dll I only know about sccrt70.dll and sccrt70d.dll Jan
Aug 20 2002
so sorry, i very new in c++ 1) how to link with the non-dll ? 2) i don't have the CD, i download all the file from the website. "Walter" <walter digitalmars.com> wrote in message news:ajsppb$a86$1 digitaldaemon.com...That file comes with the CD version of DMC++. Try linking with the non-DLL libs. -Walter "wong" <flwong eads.com.my> wrote in message news:ajsk76$3ec$1 digitaldaemon.com...oh..sorry type wrong is sccrt70.dll any idea how to solve ? "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D61D24A.659796E0 smartsoft.cc...wong wrote:errori have try sc hello2.cpp -I\dm\stlport\stlport \dm\lib\stlport_dm.lib -D_DLL and sc hello -I\dm\stlport\stlport \dm\lib\stlport_dm.lib yes the file is compile to exe , but when run the hello2.exe it showthe dynamic link library sccrtp70.dll could not found ?Are you sure that is sccrtp70.dll I only know about sccrt70.dll and sccrt70d.dll Jan
Aug 20 2002
"wong" <flwong eads.com.my> wrote in message news:ajvbsi$3199$1 digitaldaemon.com...so sorry, i very new in c++ 1) how to link with the non-dll ? 2) i don't have the CD, i download all the file from the website.To quote from \dm\stlport\readme.txt: -------------------------------------------------------------------------- To compile a program using STLport's <iostreams> with the static library: sc hello -I\dm\stlport\stlport \dm\lib\stlport_dm_static.lib To compile a program using STLport's <iostreams> with the DLL library: sc hello -I\dm\stlport\stlport \dm\lib\stlport_dm.lib -D_DLL ---------------------------------------------------------------------------- - So, use the first option.
Aug 21 2002
Yes; from the \dm\stlport\readme.txt: sc hello -I\dm\stlport\stlport \dm\lib\stlport_dm_static.lib "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D61C07A.8B1B8442 smartsoft.cc...I think you will have to include the prebuild .lib file into you compilecommandline. wong wrote:syscalli have install the prebuild bin in my c:\dm\bin and lib but i still can not compile the simple script below. hello2.cpp #include <iostream> int main() { std::cout << "hello,world !" << std::endl ; return 0; } error message show C:\dm\bin>sc hello2.cpp link hello2,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved hello2.obj(hello2) Error 42: Symbol Undefined ?_M_throw_failure ios_base IAEXXZ (voidios _base::_M_throw_failure(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1ios_base UAE XZ (syscall ios_base::~ios_base(voi d )) hello2.obj(hello2) Error 42: Symbol Undefined ??0Init ios_base QAE XZ (syscall ios_base::Init::In it(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??0_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::~_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1Init ios_base QAE XZ (syscall ios_base::Init::~I nit(void )) hello2.obj(hello2) Error 42: Symbol Undefined ?_STLP_cout 3V?$basic_ostream DV?$char_traits D A (basic_ostream<char ,char_traits<char > > _STLP_cout) --- errorlevel 7 thanks wong "Walter" <walter digitalmars.com> wrote in message news:ajsb5v$2r5t$1 digitaldaemon.com..."wong" <flwong eads.com.my> wrote in message news:ajs6vq$2n0j$1 digitaldaemon.com...i have download and unzip the stlport file in dm\stlport folder but still can not compile. i have read the readme, i don have smake to compiler it to dll. help please thanks wongI uploaded the prebuilt binaries for downloading, www.digitalmars.com/download/freecompiler.html
Aug 19 2002
Walter wrote:"Cesar Rabak" <csrabak uol.com.br> wrote in message news:3D61998F.AC8A504A uol.com.br...Great! Thanks for all your indefatigable work to ameliorate DMC++ !! -- Cesar Rabak GNU/Linux User 52247. Get counted: http://counter.li.org/I have uploaded a fixed version of the file now. STLport is pretty complicated, and doesn't need bugs in the readme to make things even more confusing. Thanks for pointing out the error so it could get fixed.Sheer stupidity? <g> Don't blame Christof, I wrote that file.You're being too tough on yourself! I would then try to point to over the hours intellectual exhaustion (at least it sounds better isn't it? ;-)
Aug 20 2002
me still can not compile ler.. anyone can help ? "Cesar Rabak" <csrabak uol.com.br> wrote in message news:3D6245E5.CA854218 uol.com.br...Walter wrote:more"Cesar Rabak" <csrabak uol.com.br> wrote in message news:3D61998F.AC8A504A uol.com.br...I have uploaded a fixed version of the file now. STLport is pretty complicated, and doesn't need bugs in the readme to make things evenSheer stupidity? <g> Don't blame Christof, I wrote that file.You're being too tough on yourself! I would then try to point to over the hours intellectual exhaustion (at least it sounds better isn't it? ;-)confusing. Thanks for pointing out the error so it could get fixed.Great! Thanks for all your indefatigable work to ameliorate DMC++ !! -- Cesar Rabak GNU/Linux User 52247. Get counted: http://counter.li.org/
Aug 20 2002
"wong" <flwong eads.com.my> wrote in message news:ajumph$2b9h$1 digitaldaemon.com...me still can not compile ler.. anyone can help ?What exactly are you typing in as a command, and what is the result?
Aug 20 2002
hi walter please read below C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport link hello2,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved hello2.obj(hello2) Error 42: Symbol Undefined ?_M_throw_failure ios_base IAEXXZ (void syscall ios _base::_M_throw_failure(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1ios_base UAE XZ (syscall ios_base::~ios_base(voi d )) hello2.obj(hello2) Error 42: Symbol Undefined ??0Init ios_base QAE XZ (syscall ios_base::Init::In it(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??0_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::~_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1Init ios_base QAE XZ (syscall ios_base::Init::~I nit(void )) hello2.obj(hello2) Error 42: Symbol Undefined ?_STLP_cout 3V?$basic_ostream DV?$char_traits D A (basic_ostream<char ,char_traits<char > > _STLP_cout) --- errorlevel 7 "Walter" <walter digitalmars.com> wrote in message news:ajupmu$2efg$1 digitaldaemon.com..."wong" <flwong eads.com.my> wrote in message news:ajumph$2b9h$1 digitaldaemon.com...me still can not compile ler.. anyone can help ?What exactly are you typing in as a command, and what is the result?
Aug 20 2002
As before... You will need to include the .lib file for stlport into your compile commandline. Jan wong wrote:hi walter please read below C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport link hello2,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved hello2.obj(hello2) Error 42: Symbol Undefined ?_M_throw_failure ios_base IAEXXZ (void syscall ios _base::_M_throw_failure(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1ios_base UAE XZ (syscall ios_base::~ios_base(voi d )) hello2.obj(hello2) Error 42: Symbol Undefined ??0Init ios_base QAE XZ (syscall ios_base::Init::In it(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??0_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::~_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1Init ios_base QAE XZ (syscall ios_base::Init::~I nit(void )) hello2.obj(hello2) Error 42: Symbol Undefined ?_STLP_cout 3V?$basic_ostream DV?$char_traits D A (basic_ostream<char ,char_traits<char > > _STLP_cout) --- errorlevel 7 "Walter" <walter digitalmars.com> wrote in message news:ajupmu$2efg$1 digitaldaemon.com..."wong" <flwong eads.com.my> wrote in message news:ajumph$2b9h$1 digitaldaemon.com...me still can not compile ler.. anyone can help ?What exactly are you typing in as a command, and what is the result?
Aug 20 2002
i can compile now, but when running hello2.exe it sholw crrt70.dll not found anyone can help ? i using win2000 pc "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D63153D.17F2D0CE smartsoft.cc...As before... You will need to include the .lib file for stlport into your compile commandline. Jan wong wrote:syscallhi walter please read below C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport link hello2,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved hello2.obj(hello2) Error 42: Symbol Undefined ?_M_throw_failure ios_base IAEXXZ (voidios _base::_M_throw_failure(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1ios_base UAE XZ (syscall ios_base::~ios_base(voi d )) hello2.obj(hello2) Error 42: Symbol Undefined ??0Init ios_base QAE XZ (syscall ios_base::Init::In it(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??0_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::~_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1Init ios_base QAE XZ (syscall ios_base::Init::~I nit(void )) hello2.obj(hello2) Error 42: Symbol Undefined ?_STLP_cout 3V?$basic_ostream DV?$char_traits D A (basic_ostream<char ,char_traits<char > > _STLP_cout) --- errorlevel 7 "Walter" <walter digitalmars.com> wrote in message news:ajupmu$2efg$1 digitaldaemon.com..."wong" <flwong eads.com.my> wrote in message news:ajumph$2b9h$1 digitaldaemon.com...me still can not compile ler.. anyone can help ?What exactly are you typing in as a command, and what is the result?
Aug 20 2002
Either... You are compiling with -ND (Use DLL run time library) or a library you are linking with (stlport) is compiled using -ND... Turn this switch off, i.e. remove it and the problem should be solved. Jan wong wrote:i can compile now, but when running hello2.exe it sholw crrt70.dll not found anyone can help ? i using win2000 pc "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D63153D.17F2D0CE smartsoft.cc...As before... You will need to include the .lib file for stlport into your compile commandline. Jan wong wrote:syscallhi walter please read below C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport link hello2,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved hello2.obj(hello2) Error 42: Symbol Undefined ?_M_throw_failure ios_base IAEXXZ (voidios _base::_M_throw_failure(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1ios_base UAE XZ (syscall ios_base::~ios_base(voi d )) hello2.obj(hello2) Error 42: Symbol Undefined ??0Init ios_base QAE XZ (syscall ios_base::Init::In it(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??0_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::~_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1Init ios_base QAE XZ (syscall ios_base::Init::~I nit(void )) hello2.obj(hello2) Error 42: Symbol Undefined ?_STLP_cout 3V?$basic_ostream DV?$char_traits D A (basic_ostream<char ,char_traits<char > > _STLP_cout) --- errorlevel 7 "Walter" <walter digitalmars.com> wrote in message news:ajupmu$2efg$1 digitaldaemon.com..."wong" <flwong eads.com.my> wrote in message news:ajumph$2b9h$1 digitaldaemon.com...me still can not compile ler.. anyone can help ?What exactly are you typing in as a command, and what is the result?
Aug 20 2002
got error when with -ND C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport \dm\lib\stlport_dm.lib -ND link hello2,,,\dm\lib\stlport_dm+user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved SND.lib Warning 2: File Not Found SND.lib hello2.obj(hello2) Error 42: Symbol Undefined __acrtused_con hello2.obj(hello2) Error 42: Symbol Undefined ??3 YAXPAX Z (void cdecl delete(void *)) hello2.obj(hello2) Error 42: Symbol Undefined __fatexit OPTLINK : Warning 134: No Start Address --- errorlevel 3 "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D63282D.11D21CC8 smartsoft.cc...Either... You are compiling with -ND (Use DLL run time library) or a library you are linking with (stlport) is compiled using -ND... Turn this switch off, i.e. remove it and the problem should be solved. Jan wong wrote:youri can compile now, but when running hello2.exe it sholw crrt70.dll not found anyone can help ? i using win2000 pc "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D63153D.17F2D0CE smartsoft.cc...As before... You will need to include the .lib file for stlport intoresult?compile commandline. Jan wong wrote:syscallhi walter please read below C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport link hello2,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved hello2.obj(hello2) Error 42: Symbol Undefined ?_M_throw_failure ios_base IAEXXZ (voidios _base::_M_throw_failure(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1ios_base UAE XZ (syscall ios_base::~ios_base(voi d )) hello2.obj(hello2) Error 42: Symbol Undefined ??0Init ios_base QAE XZ (syscall ios_base::Init::In it(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??0_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::~_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1Init ios_base QAE XZ (syscall ios_base::Init::~I nit(void )) hello2.obj(hello2) Error 42: Symbol Undefined ?_STLP_cout 3V?$basic_ostream DV?$char_traits D A (basic_ostream<char ,char_traits<char > > _STLP_cout) --- errorlevel 7 "Walter" <walter digitalmars.com> wrote in message news:ajupmu$2efg$1 digitaldaemon.com..."wong" <flwong eads.com.my> wrote in message news:ajumph$2b9h$1 digitaldaemon.com...me still can not compile ler.. anyone can help ?What exactly are you typing in as a command, and what is the
Aug 20 2002
You should NOT use -ND! -ND required sccrt70.dll which you do not have. Jan wong wrote:got error when with -ND C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport \dm\lib\stlport_dm.lib -ND link hello2,,,\dm\lib\stlport_dm+user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved SND.lib Warning 2: File Not Found SND.lib hello2.obj(hello2) Error 42: Symbol Undefined __acrtused_con hello2.obj(hello2) Error 42: Symbol Undefined ??3 YAXPAX Z (void cdecl delete(void *)) hello2.obj(hello2) Error 42: Symbol Undefined __fatexit OPTLINK : Warning 134: No Start Address --- errorlevel 3 "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D63282D.11D21CC8 smartsoft.cc...Either... You are compiling with -ND (Use DLL run time library) or a library you are linking with (stlport) is compiled using -ND... Turn this switch off, i.e. remove it and the problem should be solved. Jan wong wrote:youri can compile now, but when running hello2.exe it sholw crrt70.dll not found anyone can help ? i using win2000 pc "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D63153D.17F2D0CE smartsoft.cc...As before... You will need to include the .lib file for stlport intoresult?compile commandline. Jan wong wrote:syscallhi walter please read below C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport link hello2,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved hello2.obj(hello2) Error 42: Symbol Undefined ?_M_throw_failure ios_base IAEXXZ (voidios _base::_M_throw_failure(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1ios_base UAE XZ (syscall ios_base::~ios_base(voi d )) hello2.obj(hello2) Error 42: Symbol Undefined ??0Init ios_base QAE XZ (syscall ios_base::Init::In it(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??0_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1_Loc_init ios_base QAE XZ (syscall ios_base::_Lo c_init::~_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1Init ios_base QAE XZ (syscall ios_base::Init::~I nit(void )) hello2.obj(hello2) Error 42: Symbol Undefined ?_STLP_cout 3V?$basic_ostream DV?$char_traits D A (basic_ostream<char ,char_traits<char > > _STLP_cout) --- errorlevel 7 "Walter" <walter digitalmars.com> wrote in message news:ajupmu$2efg$1 digitaldaemon.com..."wong" <flwong eads.com.my> wrote in message news:ajumph$2b9h$1 digitaldaemon.com...me still can not compile ler.. anyone can help ?What exactly are you typing in as a command, and what is the
Aug 20 2002
then how to i compile ? thanks "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D632C41.AD66E529 smartsoft.cc...You should NOT use -ND! -ND required sccrt70.dll which you do not have. Jan wong wrote:aregot error when with -ND C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport \dm\lib\stlport_dm.lib -ND link hello2,,,\dm\lib\stlport_dm+user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved SND.lib Warning 2: File Not Found SND.lib hello2.obj(hello2) Error 42: Symbol Undefined __acrtused_con hello2.obj(hello2) Error 42: Symbol Undefined ??3 YAXPAX Z (void cdecl delete(void *)) hello2.obj(hello2) Error 42: Symbol Undefined __fatexit OPTLINK : Warning 134: No Start Address --- errorlevel 3 "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D63282D.11D21CC8 smartsoft.cc...Either... You are compiling with -ND (Use DLL run time library) or a library youintolinking with (stlport) is compiled using -ND... Turn this switch off, i.e. remove it and the problem should be solved. Jan wong wrote:i can compile now, but when running hello2.exe it sholw crrt70.dll not found anyone can help ? i using win2000 pc "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D63153D.17F2D0CE smartsoft.cc...As before... You will need to include the .lib file for stlport(voidyourcompile commandline. Jan wong wrote:hi walter please read below C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport link hello2,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved hello2.obj(hello2) Error 42: Symbol Undefined ?_M_throw_failure ios_base IAEXXZ(syscallsyscallios _base::_M_throw_failure(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1ios_base UAE XZ (syscall ios_base::~ios_base(voi d )) hello2.obj(hello2) Error 42: Symbol Undefined ??0Init ios_base QAE XZ (syscall ios_base::Init::In it(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??0_Loc_init ios_base QAE XZ(syscallios_base::_Lo c_init::_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1_Loc_init ios_base QAE XZresult?ios_base::_Lo c_init::~_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1Init ios_base QAE XZ (syscall ios_base::Init::~I nit(void )) hello2.obj(hello2) Error 42: Symbol Undefined ?_STLP_cout 3V?$basic_ostream DV?$char_traits D A (basic_ostream<char ,char_traits<char > > _STLP_cout) --- errorlevel 7 "Walter" <walter digitalmars.com> wrote in message news:ajupmu$2efg$1 digitaldaemon.com..."wong" <flwong eads.com.my> wrote in message news:ajumph$2b9h$1 digitaldaemon.com...me still can not compile ler.. anyone can help ?What exactly are you typing in as a command, and what is the
Aug 20 2002
C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport \dm\lib\stlport_dm.lib I am afraid that stlport_dm.lib has been compiled with -ND... Jan wong wrote:then how to i compile ? thanks "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D632C41.AD66E529 smartsoft.cc...You should NOT use -ND! -ND required sccrt70.dll which you do not have. Jan wong wrote:aregot error when with -ND C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport \dm\lib\stlport_dm.lib -ND link hello2,,,\dm\lib\stlport_dm+user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved SND.lib Warning 2: File Not Found SND.lib hello2.obj(hello2) Error 42: Symbol Undefined __acrtused_con hello2.obj(hello2) Error 42: Symbol Undefined ??3 YAXPAX Z (void cdecl delete(void *)) hello2.obj(hello2) Error 42: Symbol Undefined __fatexit OPTLINK : Warning 134: No Start Address --- errorlevel 3 "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D63282D.11D21CC8 smartsoft.cc...Either... You are compiling with -ND (Use DLL run time library) or a library youintolinking with (stlport) is compiled using -ND... Turn this switch off, i.e. remove it and the problem should be solved. Jan wong wrote:i can compile now, but when running hello2.exe it sholw crrt70.dll not found anyone can help ? i using win2000 pc "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D63153D.17F2D0CE smartsoft.cc...As before... You will need to include the .lib file for stlport(voidyourcompile commandline. Jan wong wrote:hi walter please read below C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport link hello2,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved hello2.obj(hello2) Error 42: Symbol Undefined ?_M_throw_failure ios_base IAEXXZ(syscallsyscallios _base::_M_throw_failure(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1ios_base UAE XZ (syscall ios_base::~ios_base(voi d )) hello2.obj(hello2) Error 42: Symbol Undefined ??0Init ios_base QAE XZ (syscall ios_base::Init::In it(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??0_Loc_init ios_base QAE XZ(syscallios_base::_Lo c_init::_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1_Loc_init ios_base QAE XZresult?ios_base::_Lo c_init::~_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1Init ios_base QAE XZ (syscall ios_base::Init::~I nit(void )) hello2.obj(hello2) Error 42: Symbol Undefined ?_STLP_cout 3V?$basic_ostream DV?$char_traits D A (basic_ostream<char ,char_traits<char > > _STLP_cout) --- errorlevel 7 "Walter" <walter digitalmars.com> wrote in message news:ajupmu$2efg$1 digitaldaemon.com..."wong" <flwong eads.com.my> wrote in message news:ajumph$2b9h$1 digitaldaemon.com...me still can not compile ler.. anyone can help ?What exactly are you typing in as a command, and what is the
Aug 20 2002
i download from the site prebuild binary. so any where u can help ?? how to recompile ? i don have vc ++ "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D63306B.AD51B62B smartsoft.cc...C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport \dm\lib\stlport_dm.lib I am afraid that stlport_dm.lib has been compiled with -ND... Jan wong wrote:\dm\lib\stlport_dm.lib -NDthen how to i compile ? thanks "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D632C41.AD66E529 smartsoft.cc...You should NOT use -ND! -ND required sccrt70.dll which you do not have. Jan wong wrote:got error when with -ND C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlportyoulink hello2,,,\dm\lib\stlport_dm+user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved SND.lib Warning 2: File Not Found SND.lib hello2.obj(hello2) Error 42: Symbol Undefined __acrtused_con hello2.obj(hello2) Error 42: Symbol Undefined ??3 YAXPAX Z (void cdecl delete(void *)) hello2.obj(hello2) Error 42: Symbol Undefined __fatexit OPTLINK : Warning 134: No Start Address --- errorlevel 3 "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D63282D.11D21CC8 smartsoft.cc...Either... You are compiling with -ND (Use DLL run time library) or a librarysolved.arelinking with (stlport) is compiled using -ND... Turn this switch off, i.e. remove it and the problem should bestlportJan wong wrote:i can compile now, but when running hello2.exe it sholw crrt70.dll not found anyone can help ? i using win2000 pc "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D63153D.17F2D0CE smartsoft.cc...As before... You will need to include the .lib file for?_M_throw_failure ios_base IAEXXZintoyourcompile commandline. Jan wong wrote:hi walter please read below C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport link hello2,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved hello2.obj(hello2) Error 42: Symbol Undefined(syscall(voidsyscallios _base::_M_throw_failure(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1ios_base UAE XZ (syscall ios_base::~ios_base(voi d )) hello2.obj(hello2) Error 42: Symbol Undefined ??0Init ios_base QAE XZ(syscall(syscallios_base::Init::In it(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??0_Loc_init ios_base QAE XZ(syscallios_base::_Lo c_init::_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1_Loc_init ios_base QAE XZios_base::_Lo c_init::~_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1Init ios_base QAE XZtheios_base::Init::~I nit(void )) hello2.obj(hello2) Error 42: Symbol Undefined ?_STLP_cout 3V?$basic_ostream DV?$char_traits D A (basic_ostream<char ,char_traits<char > > _STLP_cout) --- errorlevel 7 "Walter" <walter digitalmars.com> wrote in message news:ajupmu$2efg$1 digitaldaemon.com..."wong" <flwong eads.com.my> wrote in message news:ajumph$2b9h$1 digitaldaemon.com...me still can not compile ler.. anyone can help ?What exactly are you typing in as a command, and what isresult?
Aug 20 2002
wong wrote:i download from the site prebuild binary. so any where u can help ?? how to recompile ? i don have vc ++Recompiling with VC++ will not do you much good. You will have to recompile with DMC++. I am pretty sure a 'makefile' must be included. This will tell you how to recompile even if you do not have the correct make program for that file. You can put the compile statements in a .BAT/.CMD file and do it that way. Jan
Aug 21 2002