Thread overview | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
January 15, 2001 Link error with 8.0 | ||||
---|---|---|---|---|
| ||||
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 |
January 15, 2001 Re: Link error with 8.0 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Edward F. Sowell | 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:
|
January 16, 2001 Re: Link error with 8.0 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jan Knepper | 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:
|
January 16, 2001 Re: Link error with 8.0 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Edward F. Sowell | 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:
|
January 16, 2001 Re: Link error with 8.0 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jan Knepper | 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: > |
January 16, 2001 Re: Link error with 8.0 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Edward F. Sowell | 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.
|
January 16, 2001 Re: Link error with 8.0 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jan Knepper | 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 as in >"C:\Program Files\SC" will fail. > >Jan |
January 16, 2001 Re: Link error with 8.0 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Edward F. Sowell | 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
|
Copyright © 1999-2021 by the D Language Foundation