www.digitalmars.com         C & C++   DMDScript  

c++.command-line - OPTLINK : Error 118: Filename expected

reply Charles Arndt <Charles_member pathlink.com> writes:
OPTLINK : Error 118: Filename expected
LIB="D:\C++\DM\BIN\..\lib";"D:\C++\DM\BIN\..\mfc\lib";
^

I got that error while trying to compile my hello.cpp beginnres program.  It
made a .obj file, but still had that error.  I went ahead and linked the .obj,
and it came up with quite a few link errors.  I ran the program (yes, I know it
was stupid to do so) and it froze my comp when I didn't close the error message
fast enough.  Any thoughts on this latest error?  Is it just a case of "User
error: Replace user"?
Oct 04 2003
parent reply "Walter" <walter digitalmars.com> writes:
optlink doesn't do well with embedded + symbols in filenames. Try putting
\dm in the root directory, instead of off of \c++.

"Charles Arndt" <Charles_member pathlink.com> wrote in message
news:blo6r2$2jr0$1 digitaldaemon.com...
 OPTLINK : Error 118: Filename expected
 LIB="D:\C++\DM\BIN\..\lib";"D:\C++\DM\BIN\..\mfc\lib";
 ^

 I got that error while trying to compile my hello.cpp beginnres program.
It
 made a .obj file, but still had that error.  I went ahead and linked the
.obj,
 and it came up with quite a few link errors.  I ran the program (yes, I
know it
 was stupid to do so) and it froze my comp when I didn't close the error
message
 fast enough.  Any thoughts on this latest error?  Is it just a case of
"User
 error: Replace user"?
Oct 04 2003
parent Charles Arndt <Charles_member pathlink.com> writes:
THANK YOU!!!!! :)
It WAS a replace user error after all...

In article <blon5a$7ri$2 digitaldaemon.com>, Walter says...
optlink doesn't do well with embedded + symbols in filenames. Try putting
\dm in the root directory, instead of off of \c++.

"Charles Arndt" <Charles_member pathlink.com> wrote in message
news:blo6r2$2jr0$1 digitaldaemon.com...
 OPTLINK : Error 118: Filename expected
 LIB="D:\C++\DM\BIN\..\lib";"D:\C++\DM\BIN\..\mfc\lib";
 ^

 I got that error while trying to compile my hello.cpp beginnres program.
It
 made a .obj file, but still had that error.  I went ahead and linked the
.obj,
 and it came up with quite a few link errors.  I ran the program (yes, I
know it
 was stupid to do so) and it froze my comp when I didn't close the error
message
 fast enough.  Any thoughts on this latest error?  Is it just a case of
"User
 error: Replace user"?
Oct 05 2003