www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.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++ - Link error with 8.0

↑ ↓ ← "Edward F. Sowell" <sowelled home.com> writes:
The <iteration> thread was getting kind of long, and while this error
occurred while trying
to get STL stuff resolved, I think it's unrelated.

I have installed 8.0b0 9and the tar version of STLPort.

When I try to build a simple console app with the idde I get:

sc test.cpp -mn -C -WA -S -3 -a8 -c -gf -D_CONSOLE=1 -otest.obj
link /CO /NOI /DE /NOPACKF /XN /NT /ENTRY:mainCRTStartup /BAS:4194304
/A:512  test.LNK
Error: Filename Expected
LIB="E:\DMC++\BIN\..\lib";"E:\DMC++\BIN\..\mfc\lib";
^
Lines Processed: 326  Errors: 1  Warnings: 0
Build failed

What's going on? Looks to me that link is messing up.

Ed Sowell
Jan 15 2001
Jan Knepper <jan smartsoft.cc> writes:
Close the IDDE, delete the .MAK and .DEF file and try again.



"Edward F. Sowell" wrote:

 When I try to build a simple console app with the idde I get:

Jan 15 2001
↑ ↓ "Edward F. Sowell" <sowelled home.com> writes:
Tried it. Doesn't help.

Looks like smake is not dealing too well with the  <<$(PROJ).LNK in the
.MAK file.

This is strange, because neither link.exe nor smake.exe were changed in
the 8.0 update.
Hmmm.


Ed

Jan Knepper wrote:

 Close the IDDE, delete the .MAK and .DEF file and try again.

 "Edward F. Sowell" wrote:

 When I try to build a simple console app with the idde I get:


Jan 15 2001
↑ ↓ Jan Knepper <jan smartsoft.cc> writes:
The .MAK file is being generated from the .PRJ file.
If the IDDE is failing on the .MAK file there is probably something wrong
with the .PRJ file.

Jan



"Edward F. Sowell" wrote:

 Tried it. Doesn't help.

 Looks like smake is not dealing too well with the  <<$(PROJ).LNK in the
 .MAK file.

 This is strange, because neither link.exe nor smake.exe were changed in
 the 8.0 update.
 Hmmm.

 Ed

 Jan Knepper wrote:

 Close the IDDE, delete the .MAK and .DEF file and try again.

 "Edward F. Sowell" wrote:

 When I try to build a simple console app with the idde I get:



Jan 15 2001
↑ ↓ "Edward F. Sowell" <sowelled home.com> writes:
Well, after having struggled a bit with my test driver for the iterator
problem,
I decided to fall back to known territory. I created an entirely new project
with nothing but
the familiar "hello World" program. Exactly the same error:

sc test1.cpp -mn -C -WA -S -3 -a8 -c -gf -D_CONSOLE=1 -otest1.obj
link /CO /NOI /DE /NOPACKF /XN /NT /ENTRY:mainCRTStartup /BAS:4194304 /A:512
 test2.LNK
Error: Filename Expected
LIB="E:\DMC++\BIN\..\lib";"E:\DMC++\BIN\..\mfc\lib";
^
Lines Processed: 842  Errors: 1  Warnings: 0
Build failed

So, if the project is screwed up, it appears to be the IDDE that is doing the
trick.

Could it be that smake or link is choking with the name of my directory,
DMC++? Stranger things have
happened to me.

Ed Sowell


Jan Knepper wrote:

 The .MAK file is being generated from the .PRJ file.
 If the IDDE is failing on the .MAK file there is probably something wrong
 with the .PRJ file.

 Jan

 "Edward F. Sowell" wrote:

 Tried it. Doesn't help.

 Looks like smake is not dealing too well with the  <<$(PROJ).LNK in the
 .MAK file.

 This is strange, because neither link.exe nor smake.exe were changed in
 the 8.0 update.
 Hmmm.

 Ed

 Jan Knepper wrote:

 Close the IDDE, delete the .MAK and .DEF file and try again.

 "Edward F. Sowell" wrote:

 When I try to build a simple console app with the idde I get:




Jan 15 2001
↑ ↓ Jan Knepper <jan smartsoft.cc> writes:
Snce when is the name of your compiler directory "DMC++"???
I am pretty sure that will fail. Also putting a space in the directory name as
in
"C:\Program Files\SC" will fail.

Jan



"Edward F. Sowell" wrote:

 Well, after having struggled a bit with my test driver for the iterator
 problem,
 I decided to fall back to known territory. I created an entirely new project
 with nothing but
 the familiar "hello World" program. Exactly the same error:

 sc test1.cpp -mn -C -WA -S -3 -a8 -c -gf -D_CONSOLE=1 -otest1.obj
 link /CO /NOI /DE /NOPACKF /XN /NT /ENTRY:mainCRTStartup /BAS:4194304 /A:512
  test2.LNK
 Error: Filename Expected
 LIB="E:\DMC++\BIN\..\lib";"E:\DMC++\BIN\..\mfc\lib";
 ^
 Lines Processed: 842  Errors: 1  Warnings: 0
 Build failed

 So, if the project is screwed up, it appears to be the IDDE that is doing the
 trick.

 Could it be that smake or link is choking with the name of my directory,
 DMC++? Stranger things have
 happened to me.

Jan 15 2001
↑ ↓ → "Walter" <walter digitalmars.com> writes:
You're right, Jan. The '+' in a command to the linker acts as a separator.
Trouble can happen if your directories or filenames have anything other than
the characters [a-zA-Z0-9_.] in them. It's best to avoid any special
characters in them. -Walter


Jan Knepper wrote in message <3A63C3A4.96017F6B smartsoft.cc>...
Snce when is the name of your compiler directory "DMC++"???
I am pretty sure that will fail. Also putting a space in the directory name

"C:\Program Files\SC" will fail.

Jan

Jan 15 2001
→ "Edward F. Sowell" <sowelled home.com> writes:
Yes, that fixed it. I had a similar probelm with the GNU tools. Should
have guessed
this earlier.

Thanks.

Ed Sowell

"Edward F. Sowell" wrote:

 The <iteration> thread was getting kind of long, and while this error
 occurred while trying
 to get STL stuff resolved, I think it's unrelated.

 I have installed 8.0b0 9and the tar version of STLPort.

 When I try to build a simple console app with the idde I get:

 sc test.cpp -mn -C -WA -S -3 -a8 -c -gf -D_CONSOLE=1 -otest.obj
 link /CO /NOI /DE /NOPACKF /XN /NT /ENTRY:mainCRTStartup /BAS:4194304
 /A:512  test.LNK
 Error: Filename Expected
 LIB="E:\DMC++\BIN\..\lib";"E:\DMC++\BIN\..\mfc\lib";
 ^
 Lines Processed: 326  Errors: 1  Warnings: 0
 Build failed

 What's going on? Looks to me that link is messing up.

 Ed Sowell

Jan 16 2001