Author Topic: preprocessing failed  (Read 12615 times)

Offline a023971

  • Single posting newcomer
  • *
  • Posts: 3
preprocessing failed
« on: September 14, 2010, 07:05:19 pm »
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.
« Last Edit: September 14, 2010, 08:28:08 pm by MortenMacFly »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Re: preprocessing failed
« Reply #1 on: September 14, 2010, 08:34:29 pm »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline a023971

  • Single posting newcomer
  • *
  • Posts: 3
Re: preprocessing failed
« Reply #2 on: September 14, 2010, 09:49:19 pm »
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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Re: preprocessing failed
« Reply #3 on: September 14, 2010, 10:05:11 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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline a023971

  • Single posting newcomer
  • *
  • Posts: 3
Re: preprocessing failed
« Reply #4 on: September 14, 2010, 10:42:57 pm »
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