User forums > Using Code::Blocks

problem with wxWidget - windres error

(1/1)

gougou:
Hello,

again a post on wxWidget. I have not seen a similar error yet.
I use SVN 4093 of CodeBlocks and installed wxWidget2.6

I use the wxWidget Wizard to create the a sample project.

When I try to compile it I have an error message : here is the log

-------------- Build: Release in testagain ---------------
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -Wall -O2  -IC:\wxWidgets-2.6.4\include -IC:\wxWidgets-2.6.4\contrib\include -IC:\wxWidgets-2.6.4\lib\gcc_dll\msw -IC:\MinGW\include -IC:\codeblocks\projets\testagain -IC:\codeblocks\projets\testagain -c C:\codeblocks\projets\testagain\testagainApp.cpp -o obj\Release\testagainApp.o
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -Wall -O2  -IC:\wxWidgets-2.6.4\include -IC:\wxWidgets-2.6.4\contrib\include -IC:\wxWidgets-2.6.4\lib\gcc_dll\msw -IC:\MinGW\include -IC:\codeblocks\projets\testagain -IC:\codeblocks\projets\testagain -c C:\codeblocks\projets\testagain\testagainMain.cpp -o obj\Release\testagainMain.o
windres.exe -i C:\CODEBL~1\projets\TESTAG~1\resource.rc -I rc -o obj\Release\resource.res -O coff -IC:\wxWidgets-2.6.4\include -IC:\wxWidgets-2.6.4\lib\gcc_dll\msw -IC:\MinGW\include -IC:\CODEBL~1\projets\TESTAG~1 -IC:\codeblocks\projets\testagain
windres.exe: unknown format type `C:\wxWidgets-2.6.4\include'
windres.exe: supported formats: rc res coff
Process terminated with status 1 (0 minutes, 6 seconds)
2 errors, 0 warnings
Build log saved as: C:\codeblocks\projets\testagain\testagain_build_log.html
 

Do not really know what is happening.

If anyone can help me it would be grate.

Bye.

stahta01:
Please post the version of windres you are using. There is some problem with some of them.


--- Code: ---windres --version

--- End code ---

Also, the meaning of the -I option was changed in the past few years.


--- Code: ---windres --help

--- End code ---

Gives below for me with my version of "GNU windres 2.17.50 20060824"; note you can use older windres but you need to change options somewhere in Code::Blocks to do so. Link on what to change if you wish to use the really old windres
http://forums.codeblocks.org/index.php/topic,27.html
Note, the thread is several years old, so the info may or may not work.


--- Code: ---  -J --input-format=<format>   Specify input format
  -I --include-dir=<dir>       Include directory when preprocessing rc file

--- End code ---

Tim S

gougou:
Hello,

your remark was the good one. My windres was quite old, and I installed the version you mentionned and my wxWidget "wizard" application compiles and runs.

Thanks again.



Navigation

[0] Message Index

Go to full version