User forums > Help
Compiling CB against wx 2.6.0 gives error (probably simple
rickg22:
Hmmmm try compiling with the *NEW* instructions that I just posted on the sticky 2.6 thread (I copied them from the cvs README).
Oh, try deleting your whole codeblocks directory (note: i mean the one you're trying to compile, not the one you're using :-P )
David Perfors:
--- Quote from: rickg22 ---Hmmmm try compiling with the *NEW* instructions that I just posted on the sticky 2.6 thread (I copied them from the cvs README).
--- End quote ---
hmm. strange... I don't see what I am missing in my own compilation... but this seems to work. the compiler is further than it was before...
There two warnings, but I will try to make a patch for it... (two functions are deprecated.)
There is also a warning which looks very strang to me. I just show it :) perhaps you could do something with it later...
And Finaly there is an error given by windres.exe I don't know if this is a problem I only have, a whell, just look at it, perhaps you know it, and know how to solve it.
--- Quote from: compiler ---
src/main.cpp: In member function `void MainFrame::CreateMenubar()':
src/main.cpp:459: warning: suggest parentheses around assignment used as truth value
src/main.cpp:461: warning: suggest parentheses around assignment used as truth value
Compiling "src\printdlg.cpp"...
Compiling resources...
windres.exe: invalid option -- J
Usage: windres.exe [option(s)] [input-file] [output-file]
The options are:
-i --input=<file> Name input file
-o --output=<file> Name output file
-I --input-format=<format> Specify input format
Process terminated with status 1 (4 minutes, 39 seconds)
--- End quote ---
And here is my windres version:
--- Quote from: windres -V ---
GNU windres 2.13.90 20030111
--- End quote ---
I've got mingw-3.1.0-1 installed...
mandrav:
--- Quote ---And Finaly there is an error given by windres.exe I don't know if this is a problem I only have, a whell, just look at it, perhaps you know it, and know how to solve it.
compiler wrote:
--- Code: ---src/main.cpp: In member function `void MainFrame::CreateMenubar()':
src/main.cpp:459: warning: suggest parentheses around assignment used as truth value
src/main.cpp:461: warning: suggest parentheses around assignment used as truth value
Compiling "src\printdlg.cpp"...
Compiling resources...
windres.exe: invalid option -- J
Usage: windres.exe [option(s)] [input-file] [output-file]
The options are:
-i --input=<file> Name input file
-o --output=<file> Name output file
-I --input-format=<format> Specify input format
Process terminated with status 1 (4 minutes, 39 seconds)
--- End code ---
--- End quote ---
Hmm, the windres.exe I have is "GNU windres 2.15.91 20040904". Anyway, no big deal. Go to "Compile->Compiler options->Other->Advanced options->Commands->Compile Win32 resource file" and in the command line macro box change -J to -I, i.e. change it to
--- Code: ---$rescomp -i $file -I rc -o $resource_output -O coff $res_includes
--- End code ---
Yiannis.
David Perfors:
Thanks Yiannis, it workt a bit... now I get the following error :(
--- Quote ---windres.exe: unknown format type `C:/Development/MinGW/include'
windres.exe: supported formats: rc res coff
mingw32-make.exe: *** [src_private.res] Error 1
--- End quote ---
I am trying to get the new version of mingw (3.2.0-rc3) perhaps that will solve it...
mandrav:
I see...
The problem lies in that "-I" is now used for adding search dirs, while your windres.exe expects it to define the resource format. I 'll see if I can deal with this in CVS...
Yiannis.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version