User forums > Help

preprocessing failed

(1/1)

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.

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  

--- End quote ---

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.

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

Navigation

[0] Message Index

Go to full version