Author Topic: gdb.exe flag setting in C::B question  (Read 4986 times)

Offline Fred

  • Single posting newcomer
  • *
  • Posts: 5
gdb.exe flag setting in C::B question
« on: August 16, 2008, 08:32:16 pm »
Hello, i am trying to figure out where C::B set this flag "-J" when it calls gdb.exe, ive gone trough
all possible dialog screens and cant find where it get this from... 

-------------- Build: Debug in WxTest ---------------

Compiling: resource.rc
gdb.exe: unrecognized option `-J'
Use `gdb.exe --help' for a complete list of options.
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

Best regards, Fred

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: gdb.exe flag setting in C::B question
« Reply #1 on: August 16, 2008, 08:49:17 pm »
Please send full commandline:
Switch "Settings->Compiler & Debugger->tab "Other" (rightmost tab)->Compiler logging" to "Full command line" and do a rebuild.

Which version of C::B ?
Which OS ? (I guess Win ?)

Offline Fred

  • Single posting newcomer
  • *
  • Posts: 5
Re: gdb.exe flag setting in C::B question
« Reply #2 on: August 16, 2008, 08:57:54 pm »
I use latest nightly build under windows vista, stock mingw that came with the installer of CB 8.02.

Here is a more detailed log.

-------------- Build: Debug in WxTest ---------------

mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL  -Wall  -g -D__WXDEBUG__    -IC:\SourceCode\Libraries\wxWidgets2.8\include -IC:\SourceCode\Libraries\wxWidgets2.8\contrib\include -I..\..\SourceCode\Libraries\wxWidgets2.8\lib\vc_dll\mswd -IC:\wxWidgets-2.8.8\include  -c "C:\CodeBlocks Projects\WxTest\WxTestMain.cpp" -o obj\Debug\WxTestMain.o
gdb.exe -i C:\CODEBL~2\WxTest\resource.rc -J rc -o obj\Debug\resource.res -O coff -IC:\SourceCode\Libraries\wxWidgets2.8\include -IC:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_dll\mswd
gdb.exe: unrecognized option `-J'
Use `gdb.exe --help' for a complete list of options.
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 0 warnings
 

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: gdb.exe flag setting in C::B question
« Reply #3 on: August 16, 2008, 09:47:16 pm »
It looks like your toolchain is broken.

Please have a look in "Settings -> Compiler and debugger -> Global compiler settings -> Toolchain executables"

It seems that you have entered "gdb.exe" as Resource compiler.

Offline Fred

  • Single posting newcomer
  • *
  • Posts: 5
Re: gdb.exe flag setting in C::B question
« Reply #4 on: August 16, 2008, 10:05:08 pm »
Yep you are absolutely right, i made the mistake of putting gdb.exe in as the resource compiler....

Thanks for your help