c++ - i cannot compile
- "wong" <flwong eads.com.my> Aug 18 2002
- "Walter" <walter digitalmars.com> Aug 18 2002
- "wong" <flwong eads.com.my> Aug 18 2002
- "Walter" <walter digitalmars.com> Aug 19 2002
- "wong" <flwong eads.com.my> Aug 19 2002
- "Walter" <walter digitalmars.com> Aug 19 2002
- "wong" <flwong eads.com.my> Aug 19 2002
- "wong" <flwong eads.com.my> Aug 18 2002
- Cesar Rabak <csrabak uol.com.br> Aug 19 2002
- "Walter" <walter digitalmars.com> Aug 19 2002
- Cesar Rabak <csrabak uol.com.br> Aug 19 2002
- "Walter" <walter digitalmars.com> Aug 19 2002
- "wong" <flwong eads.com.my> Aug 19 2002
- "Walter" <walter digitalmars.com> Aug 19 2002
- "wong" <flwong eads.com.my> Aug 19 2002
- Jan Knepper <jan smartsoft.cc> Aug 19 2002
- "wong" <flwong eads.com.my> Aug 19 2002
- Jan Knepper <jan smartsoft.cc> Aug 19 2002
- "wong" <flwong eads.com.my> Aug 19 2002
- "Walter" <walter digitalmars.com> Aug 20 2002
- "wong" <flwong eads.com.my> Aug 20 2002
- "Walter" <walter digitalmars.com> Aug 21 2002
- "Walter" <walter digitalmars.com> Aug 19 2002
- Cesar Rabak <csrabak uol.com.br> Aug 20 2002
- "wong" <flwong eads.com.my> Aug 20 2002
- "Walter" <walter digitalmars.com> Aug 20 2002
- "wong" <flwong eads.com.my> Aug 20 2002
- Jan Knepper <jan smartsoft.cc> Aug 20 2002
- "wong" <flwong eads.com.my> Aug 20 2002
- Jan Knepper <jan smartsoft.cc> Aug 20 2002
- "wong" <flwong eads.com.my> Aug 20 2002
- Jan Knepper <jan smartsoft.cc> Aug 20 2002
- "wong" <flwong eads.com.my> Aug 20 2002
- Jan Knepper <jan smartsoft.cc> Aug 20 2002
- "wong" <flwong eads.com.my> Aug 20 2002
- Jan Knepper <jan smartsoft.cc> Aug 21 2002
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] +
/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 compile
Ah, 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 compile
Ah, 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.txt
Walter, 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...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.
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/
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.
the hours intellectual exhaustion (at least it sounds better isn't it? ;-)
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.
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.
the hours intellectual exhaustion (at least it sounds better isn't it? ;-)
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.
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
I 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
wong
I 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 wong
I 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 compile
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
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
I 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: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
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
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
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 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
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 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 compile
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
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
I 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...Sheer stupidity? <g> Don't blame Christof, I wrote that file.
the hours intellectual exhaustion (at least it sounds better isn't it? ;-)
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.
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
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.
the hours intellectual exhaustion (at least it sounds better isn't it? ;-)
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
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: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
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
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
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
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
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
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
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
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
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
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
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
yourcompile 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
syscallios _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
ios_base::_Lo c_init::_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1_Loc_init ios_base QAE XZ
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: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
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
yourcompile 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
syscallios _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
ios_base::_Lo c_init::_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1_Loc_init ios_base QAE XZ
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: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
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
arelinking with (stlport) is compiled using -ND... Turn this switch off, i.e. remove it and the problem should be
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
intoyourcompile 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
(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
ios_base::Init::In it(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??0_Loc_init ios_base QAE XZ
ios_base::_Lo c_init::_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1_Loc_init ios_base QAE XZ
ios_base::_Lo c_init::~_Loc_init(void )) hello2.obj(hello2) Error 42: Symbol Undefined ??1Init ios_base QAE XZ
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
result?
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









"wong" <flwong eads.com.my> 