c++ - Link error with 8.0
- "Edward F. Sowell" <sowelled home.com> Jan 15 2001
- Jan Knepper <jan smartsoft.cc> Jan 15 2001
- "Edward F. Sowell" <sowelled home.com> Jan 15 2001
- Jan Knepper <jan smartsoft.cc> Jan 15 2001
- "Edward F. Sowell" <sowelled home.com> Jan 15 2001
- Jan Knepper <jan smartsoft.cc> Jan 15 2001
- "Walter" <walter digitalmars.com> Jan 15 2001
- "Edward F. Sowell" <sowelled home.com> Jan 16 2001
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
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
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
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
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
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
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
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