Author Topic: problem with wxWidget - windres error  (Read 5089 times)

gougou

  • Guest
problem with wxWidget - windres error
« on: June 15, 2007, 04:23:24 pm »
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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7789
    • My Best Post
Re: problem with wxWidget - windres error
« Reply #1 on: June 19, 2007, 07:29:43 am »
Please post the version of windres you are using. There is some problem with some of them.

Code
windres --version

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

Code
windres --help

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

Tim S
« Last Edit: June 19, 2007, 07:41:49 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

gougou

  • Guest
Re: problem with wxWidget - windres error
« Reply #2 on: June 21, 2007, 05:23:20 pm »
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.