www.digitalmars.com         C & C++   DMDScript  

c++ - OPTLINK Error: 118: Filename Expected

reply bpolen <bpolen_member pathlink.com> writes:
I have setup stlport as defined by the readme.txt file under dm\stlport.
yet when I try to compile the hello.cpp file that comes with the stlport
distribution located on the digital mars download page I get the following
errors.
D:\C__BOO~1>d:\c++_stuff\digitalmars\dm\bin\sc hello.cpp -ID:\C++_STUFF\digitalm
ars\dm\stlport\stlport
link hello,,,user32+kernel32/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

OPTLINK : Error 118: Filename Expected
LIB="d:\c++_stuff\digitalmars\dm\bin\..\lib";"d:\c++_stuff\digitalmars\dm\bin\..
\mfc\lib";D:\Program Files\Microsoft SDK\Lib;D:\Boost\lib
^
Why do I get this error?

It doesn't seem to be stlport related!
I am using the default sc.ini.
Even if I remove the everything from the sc.ini LIB line execept for
"d:\c++_stuff\digitalmars\dm\bin\..\lib"
I still get the error. 
Can anyone help with this?
Also do I need to compile the stlport 4.5.3(digital mars version) in order for
it to use IOSTREAM or is it pre compiled to work with digital mars?

I am using the following:
OS = windows xp
the following are non-cd versions of Digital mars software.  In other words I
downloaded it from the Digital mars website:
digital mars compiler = 8.38 
DOS 16 libraries 
32 bit DOS extender libraries Version 8.31
Basic Utilities  
STLport 4.5.3: modified for digital mars
STLSoft 1.6.5: dowloaded from digital mars website
Garbage Collector
Jan 09 2004
parent reply "Walter" <walter digitalmars.com> writes:
"bpolen" <bpolen_member pathlink.com> wrote in message
news:btmrq6$1a9r$1 digitaldaemon.com...
 OPTLINK : Error 118: Filename Expected
LIB="d:\c++_stuff\digitalmars\dm\bin\..\lib";"d:\c++_stuff\digitalmars\dm\bi n\..
 \mfc\lib";D:\Program Files\Microsoft SDK\Lib;D:\Boost\lib
 ^
 Why do I get this error?
Don't use filenames with + characters in them, as they mean something different to the linker.
Jan 09 2004
next sibling parent reply bpolen <bpolen_member pathlink.com> writes:
In article <btn2cs$1kl0$1 digitaldaemon.com>, Walter says...
"bpolen" <bpolen_member pathlink.com> wrote in message
news:btmrq6$1a9r$1 digitaldaemon.com...
 OPTLINK : Error 118: Filename Expected
LIB="d:\c++_stuff\digitalmars\dm\bin\..\lib";"d:\c++_stuff\digitalmars\dm\bi n\..
 \mfc\lib";D:\Program Files\Microsoft SDK\Lib;D:\Boost\lib
 ^
 Why do I get this error?
Don't use filenames with + characters in them, as they mean something different to the linker.
Walter you are right! To bad it took me three nights of trying before I decided to use the forum. Interesting note I wanted to use digital mars because for loops in python where running in 2/3 the time of for loops in mingw c++. Now with digital mars the same loops run two times faster than python as they should. Thanks for the help!

Jan 09 2004
parent "Walter" <walter digitalmars.com> writes:
"bpolen" <bpolen_member pathlink.com> wrote in message
news:btn3lq$1mrl$1 digitaldaemon.com...
 Interesting note I wanted to use digital mars because for loops in python
where
 running in 2/3 the time of for loops in mingw c++.  Now with digital mars
the
 same loops run two times faster than python as they should.
 Thanks for the help!
You're welcome!
Jan 09 2004
prev sibling parent reply bpolen <bpolen_member pathlink.com> writes:
Walter you are right!  To bad it took me three nights of trying before I decided
to use the forum.

Interesting note I wanted to use digital mars because for loops in python where
running in 2/3 the time of for loops in mingw c++.  Now with digital mars the
same loops run two times faster than python as they should.
Thanks for the help!

In article <btn2cs$1kl0$1 digitaldaemon.com>, Walter says...
"bpolen" <bpolen_member pathlink.com> wrote in message
news:btmrq6$1a9r$1 digitaldaemon.com...
 OPTLINK : Error 118: Filename Expected
LIB="d:\c++_stuff\digitalmars\dm\bin\..\lib";"d:\c++_stuff\digitalmars\dm\bi n\..
 \mfc\lib";D:\Program Files\Microsoft SDK\Lib;D:\Boost\lib
 ^
 Why do I get this error?
Don't use filenames with + characters in them, as they mean something different to the linker.
Jan 09 2004
parent reply Jan Knepper <jan smartsoft.us> writes:
bpolen wrote:
 Interesting note I wanted to use digital mars because for loops in python where
 running in 2/3 the time of for loops in mingw c++.  Now with digital mars the
 same loops run two times faster than python as they should.
 Thanks for the help!
Only 2 times faster??? I wonder what you are doing... -- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.org
Jan 09 2004
parent Ilya Minkov <minkov cs.tum.edu> writes:
Jan Knepper wrote:
 Only 2 times faster???
 I wonder what you are doing...
I wonder what he was doing to make GCC code slower than Python! -eye
Jan 09 2004