News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

preprocessing failed

Started by a023971, September 14, 2010, 07:05:19 PM

Previous topic - Next topic

a023971

i installed codeblocks 10.05 with wxwidgets 2.8.10 from wxpack and compiled by mingw (OS win7 home premium). When i try to create a wxwidget project i have this message.

windres.exe -i C:\PROGRA~2\CODEBL~1\q1x2\resource.rc -J rc -o obj\Release\resource.res -O coff -IC:\wxWidgets2.8\include -IC:\wxWidgets2.8\lib\gcc_dll\mswu

windres.exe: preprocessing failed.

what's wrong?? thanks

[Edit:] Removed non-english content.

stahta01

What version of windres.exe are you using?
Get rid of all the spaces in the paths used by the project; some version of windres has problems with spaces.

Is the file resource.rc an text file?

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

a023971

I've got the windres.exe version contained in mingw with codeblock 10.05. I see all paths and looks well. I also have the environment variable path pointing to bin directory of MinGW. Another message in log that not appear in the post before was:

The actual directory is not valid 
windres.exe: preprocessing failed

Do I need to download the src files for codeblocks??

Please I need some help

stahta01

Quote from: a023971 on September 14, 2010, 09:49:19 PM
The actual directory is not valid  

Remove the rc file from CB project; re-add the rc file, using relative path might be needed also.

Note: Turn ON Full Compiler Logging
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

a023971

The directory of the project was invalid i don't know why. I moved the folder of the project and it runs. Thank you very much