August 21, 2002 Re: i cannot compile | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jan Knepper | 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 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 > > > > 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? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |
August 21, 2002 Re: i cannot compile | ||||
---|---|---|---|---|
| ||||
Posted in reply to wong | 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
> 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
> > > > > 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?
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > >
> > > >
> >
|
August 21, 2002 Re: i cannot compile | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jan Knepper | 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 \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 > > > > 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? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |
August 21, 2002 Re: i cannot compile | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | 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 > > 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 > > > > > > > > > > > > |
August 21, 2002 Re: i cannot compile | ||||
---|---|---|---|---|
| ||||
Posted in reply to wong | 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
|
August 21, 2002 Re: i cannot compile | ||||
---|---|---|---|---|
| ||||
Posted in reply to wong | "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. |
Copyright © 1999-2021 by the D Language Foundation