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++ - i cannot compile
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...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] + 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 compile 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 compile 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.txt 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". Aug 19 2002
Walter wrote:"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". Aug 19 2002
"Cesar Rabak" <csrabak uol.com.br> wrote in message news:3D61998F.AC8A504A uol.com.br...Sheer stupidity? <g> Don't blame Christof, I wrote that file. 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...Sheer stupidity? <g> Don't blame Christof, I wrote that file. 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 wong 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 wong 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 wong 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 compile 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 ? 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: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 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: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 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: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 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. 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 compile Aug 19 2002
Walter wrote:"Cesar Rabak" <csrabak uol.com.br> wrote in message news:3D61998F.AC8A504A uol.com.br...Sheer stupidity? <g> Don't blame Christof, I wrote that file. 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:"Cesar Rabak" <csrabak uol.com.br> wrote in message news:3D61998F.AC8A504A uol.com.br...Sheer stupidity? <g> Don't blame Christof, I wrote that file. 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 ? 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 ? 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 ? 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: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 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: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 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: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 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: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 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: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 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: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 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: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:got error when with -ND C:\dm\bin>sc hello2.cpp -I\dm\stlport\stlport 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 ++ Aug 21 2002
|