User forums > Using Code::Blocks
invalid option -- J
yeye:
Hey all,
That's the message I get instantly while I try compiling a new wxWidgets project with GCC.
I looked at the compiler options but never saw that J option.
--- Code: ---||=== test_wxWidgets, Release ===|
||invalid option -- J|
||supported targets: pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec symbolsrec tekhex binary ihex|
||=== Build finished: 2 errors, 0 warnings ===|
--- End code ---
Any idea ?
Thx,
Yéyé
yeye:
It seems to happen because I don't compile with the provided MinGW but the one from minGW website.
Are'nt they compatibles ?
I only changed the compiler PATH and all the executables seemed to be in place.
Well, I'll try recompile wxWidgets with that MinGW ...
Jenna:
If you search the forum for ""--J" you should find the solution.
yeye:
I did search for "-J" and not "-- J", thanks !
But the problem is elsewhere now :
--- Code: ----------------- Build: Debug in test_wxwidgets ---------------
Compiling: resource.rc
windres.exe: unknown format type `H:\home\commun\dev\libs\wxWidgets-2.8.8\include'
windres.exe: supported formats: rc res coff
Process terminated with status 1 (0 minutes, 0 seconds)
2 errors, 0 warnings
--- End code ---
Windres seems to confound the path and the file
H:\home\commun\dev\libs\wxWidgets-2.8.8\include is the good path (declared in "project build options > search directories > Resource compiler"
wx.rc is at its place in H:\home\commun\dev\libs\wxWidgets-2.8.8\include\wx\msw\
Here is the line-code of resource compiler (after replacing -J by -I)
--- Code: ---$rescomp -i $file -I rc -o $resource_output -O coff $res_includes
--- End code ---
Weird, isn't it ?
Yéyé
MortenMacFly:
--- Quote from: yeye on September 16, 2008, 06:55:07 pm ---
--- Code: ---windres.exe: unknown format type `H:\home\commun\dev\libs\wxWidgets-2.8.8\include'
--- End code ---
--- Code: ---$rescomp -i $file -I rc -o $resource_output -O coff $res_includes
--- End code ---
--- End quote ---
I don't think so. You tell the resource compiler to include only a path named "rc". The $res_includes is taken as objects. Why? Read the help of windres (simply call windres --help on a console), it says:
--- Code: ---Usage: windres.exe [option(s)] [input-file] [output-file]
--- End code ---
As you see: Options first, then *only* input, then *only* output.
You do:
--- Code: ---windres.EXE [option(s)] [input-file] [output-file] [option(s)]
--- End code ---
Which is just wrong.
Navigation
[0] Message Index
[#] Next page
Go to full version