User forums > Using Code::Blocks

Problem with simple test on Windows

<< < (2/2)

RobinMin:
Oh,Thank you, stahta01. Your answer is very useful for me to see the cmd line ,:) .

But I got the following build log:

--- Code: ----------------- Build: Debug in test001 ---------------
......
link.exe /nologo /LIBPATH:"C:\Program Files\Microsoft Visual Studio 8\VC\lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\" /LIBPATH:"C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\lib\"  /out:bin\Debug\test001.exe  obj\Debug\main.obj   /DEBUG
LINK : fatal error LNK1181: cannot open input file 'Files\Microsoft.obj'
Process terminated with status 1181 (0 minutes, 2 seconds)
1 errors, 0 warnings

--- End code ---
So , It seemed like because of the blankspace in the LIBPATH enviroment variable,and C::B split the command line by blankspace.  :(

As you know, reinstall VS2005 is a hardwork, anyone have any fix hint for this bug?
Maybe it is really the right time to install one gcc in my laptop.

And thank all the replier in this topic.

stahta01:

--- Quote from: RobinMin on April 17, 2007, 04:33:13 am ---Oh,Thank you, stahta01. Your answer is very useful for me to see the cmd line ,:) .

But I got the following build log:

--- Code: ----------------- Build: Debug in test001 ---------------
......
link.exe /nologo /LIBPATH:"C:\Program Files\Microsoft Visual Studio 8\VC\lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\" /LIBPATH:"C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\lib\"  /out:bin\Debug\test001.exe  obj\Debug\main.obj   /DEBUG
LINK : fatal error LNK1181: cannot open input file 'Files\Microsoft.obj'
Process terminated with status 1181 (0 minutes, 2 seconds)
1 errors, 0 warnings

--- End code ---
So , It seemed like because of the blankspace in the LIBPATH enviroment variable,and C::B split the command line by blankspace.  :(

As you know, reinstall VS2005 is a hardwork, anyone have any fix hint for this bug?
Maybe it is really the right time to install one gcc in my laptop.

And thank all the replier in this topic.


--- End quote ---

I suggest seeing if the problem is in the batch file %VS80COMNTOOLS%vsvars32.bat
I think that the "\" right before the quote is the problem. I have no idea if this is caused by the vsvars32.bat file but it is possible. I posted the copy of a line(s) that might be the problem line below. Note, I only have express version installed at current time, so my batch may be different than yours. There is another file to check but not sure what it is.

Tim S


--- Code: ---@set LIB=C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB;C:\Program Files\Microsoft Visual Studio 8\VC\LIB;C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\lib;%LIB%
@set LIBPATH=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB

--- End code ---

RobinMin:
Thanks again, :)

But, now I have found out one way to resolve this issue. Share it.
As we known , all of this is because of the blank space in the path name. So we define some "custom variable "  , and using it.
This is my step:
1,Setting->Compiler&Debugger setting->[Miscrosoft Visual Studio 2005]->[Custome variables]
2, click [add] button , and add following variable:
  key : VCINSTALLDIR
  value :""C:\Program Files\Microsoft Visual Studio 8\VC""
3, Setting->Compiler&Debugger setting->[Miscrosoft Visual Studio 2005]->[Searching directories]
  add compiler & lnker and resource compiler if you need , the format like this:
   $(VCINSTALLDIR)\include
   $(VCINSTALLDIR)\lib
   ......

It is work fine in my laptop. But it seemed like very slowlly when you open one new project. spend time to parse custome variable??? Anyway, I donot know.

BTW, I can run program now , but I cannot debug source step by step in using cdb.exe. Must I install some old debugger from M$ as  before? I hadn't using C::B few months now.

stahta01:
I can't help you with debugger questions. I do NOT use them yet. I hope to learn how to in the future, but right now nothing I do is complex enough to require it.

Tim S

Navigation

[0] Message Index

[*] Previous page

Go to full version