User forums > Using Code::Blocks
Problem with simple test on Windows
RobinMin:
After I installed C::B in my Windows XP, I used the wizard generate one project of console application for test C::B.
The code as following:
--- Code: ---#include <iostream>
using namespace std;
int main()
{
CTest testor;
cout << "Hello world!" << endl;
return 0;
}
--- End code ---
But, unfortunately ,I got the error message as following. I have no ideal with this ,anybody can give me any hint? Thank.
--- Code: ---LINK : fatal error LNK1181: cannot open input file 'Files\Microsoft.obj'
--- End code ---
This is my enviroment:
1, OS : XP
2, C::B version (SVN 3858)
3, C++ compiler MSVC 2005
TDragon:
This smells like a C::B bug, but the easiest fix for you right now would be to reinstall MSVC in a path without spaces (i.e. move it out of "Program Files"), and recreate your project in a path without spaces.
stahta01:
--- Quote from: TDragon on April 16, 2007, 07:14:33 pm ---This smells like a C::B bug, but the easiest fix for you right now would be to reinstall MSVC in a path without spaces (i.e. move it out of "Program Files"), and recreate your project in a path without spaces.
--- End quote ---
It just worked OK for me.
This is my setup:
1, OS : XP SP2
2, C::B version (SVN 3859)
3, C++ compiler MSVC 2005 express edition
4, No spaces in my codeblock path.
5, No spaces in my project path.
6, My MSVC installed in standard "C:\Program Files\Microsoft Visual Studio 8"
Note: I had to comment out "CTest testor;" because it did NOT know what CTest was.
Tim S
Alturin:
I don't think it's the 'spaces inna path' bug, because that'd mean the path it passed originally was something like:
--- Code: ---C:/Program Files/Microsoft.obj
--- End code ---
?
Would make more sense if there's some actual "Files/Microsoft.obj" directory somewhere in the default MSVC path when it's properly set?
stahta01:
--- Quote from: Alturin on April 17, 2007, 12:34:18 am ---I don't think it's the 'spaces inna path' bug, because that'd mean the path it passed originally was something like:
--- Code: ---C:/Program Files/Microsoft.obj
--- End code ---
?
Would make more sense if there's some actual "Files/Microsoft.obj" directory somewhere in the default MSVC path when it's properly set?
--- End quote ---
FYI: output with "compiler logging" turned to full.
"Setting" -> "Compiler and Debugger"
Select your compiler
Select "Other Settings"
Set "Compiler Logging" to "Full command Line"
--- Code: ----------------- Build: Release in Test2 ---------------
cl.exe /nologo /W3 /EHsc /Ox /DNDEBUG /MD /I"C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\include" /I"C:\Program Files\Microsoft Visual Studio 8\VC\include" /c main.cpp /Foobj\Release\main.obj
main.cpp
link.exe /nologo /LIBPATH:"C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio 8\VC\lib" /out:bin\Release\Test2.exe msvcrt.lib msvcprt.lib obj\Release\main.obj
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version