User forums > General (but related to Code::Blocks)

.rc: No such file or directory

(1/2) > >>

iainc:
Hi,

I'm running through the wxSmith tutorial at:  http://wiki.codeblocks.org/index.php?title=WxSmith_tutorial:_Hello_world

And everything seems to be going fine until I try a compilation, i.e the last few lines before: http://wiki.codeblocks.org/index.php?title=WxSmith_tutorial:_Hello_world#Let.27s_add_some_fireworks

At that point rather than seeing a nice clean build, I instead get:


--- Code: ----------------- Build: Debug in hellowin ---------------

windres.exe -i C:\CODE-B~1\hellowin\resource.rc -J rc -o obj\Debug\resource.res -O coff -IC:\SourceCode\Libraries\wxWidgets2.8\include -IC:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_dll\mswud
gcc: C:CODE-B~1hellowinresource.rc: No such file or directory
gcc: warning: `-x c' after last input file has no effect
gcc: no input files
windres: preprocessing failed.
Process terminated with status 1 (0 minutes, 5 seconds)
0 errors, 1 warnings
--- End code ---

This is on a Win XP SP3 machine.  Strangely on a machine on which I installed all the same packages and configuration (side-by-side install) everything works fine (albeit this is a Vista machine).  Why is one installation creating all the required files and the other not?  I don't understand what I've done wrong given that I'm sure that I set up both machines identically!

Iain

stahta01:
IIRC, the version of windres and Code::Blocks contributed to this problem.
What are both versions?

Also, what is the version of gcc?

Note, one issue was the folder being called "rc" with some of the above;
renaming it "./rc" or ".\rc" solved that issue.
A different windres issue (not being caused by Code::Blocks) is having spaces/special characters in file path.

Tim S.

iainc:
Hi,

Thanks,

C::B: 8.02

GNU windres (GNU Binutils) 2.18.50.20080109

gcc (GCC) 4.2.1-dw2 (mingw32-2)

The path of the project is: C:\code-blocks\hellowin\

But as I say this is all identical across the two machines - I've even tried a complete uninstall of C::B and wxPack (including registry clean and deleting the relevant "Application data" folders), just in case I'd managed to corrupt something subtly during/just after installation.

Iain

stahta01:
I suggest posting the full compiler build log for both and seeing how it differs.

NOTE: Vista changed a lot of long file naming operations. Since you are NOT using DOS 7.3 file folder names it might be the difference.

Tim S.

iainc:

--- Quote ---I suggest posting the full compiler build log for both and seeing how it differs.
--- End quote ---

Thanks - the log in the HTML file though is pretty much what's in my first post - even with "full command line" logging enabled:


--- Code: ---Build started on: 30-11-2009 at 10:51.23
Build ended on: 30-11-2009 at 10:51.23

-------------- Build: Debug in hellowin ---------------
windres.exe -i C:\CODE-B~1\hellowin\resource.rc -J rc -o obj\Debug\resource.res -O coff -IC:\SourceCode\Libraries\wxWidgets2.8\include -IC:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_dll\mswud
gcc: C:CODE-B~1hellowinresource.rc: No such file or directory
gcc: warning: `-x c' after last input file has no effect
gcc: no input files
windres: preprocessing failed.
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 1 warnings
--- End code ---

I'll try shortening the bits of the path that don't fit 8.3 format...

Navigation

[0] Message Index

[#] Next page

Go to full version