Code::Blocks Forums

User forums => Help => Topic started by: markus22 on January 18, 2008, 11:30:48 am

Title: Cross Compiling in Linux using MingW32
Post by: markus22 on January 18, 2008, 11:30:48 am
Hi all,

Finally, it works. It compiles , links wxWidgets sample for windows with no problem , and wine launches the created EXE correctlly:)

But when i try to debug i get this message:

Quote
Building to ensure sources are up-to-date
Build succeeded
Selecting target: Debug
Adding source dir: /home/developer/projects/winwx/
Adding source dir: /home/developer/projects/winwx/
Adding file: bin/Debug/winwx.exe
Starting debugger: done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.3
Error creating process Z:\home\developer\projects\winwx/bin/Debug/winwx.exe, (error 32)
Debugger finished with status 0

Or if i just try to execute the program inside codeblocks IDE i get this error:

Quote
Checking for existence: /home/developer/projects/winwx/bin/Debug/winwx.exe
Executing: /home/developer/projects/winwx/bin/Debug/winwx.exe  (in /home/developer/projects/winwx/.)
Process terminated with status 126 (0 minutes, 0 seconds)
Can you tell how can i get the Debugger working?
Thanks.
Title: Re: Cross Compiling in Linux using MingW32
Post by: markus22 on January 20, 2008, 11:36:49 am
Any help will be appreciated.
Title: Re: Cross Compiling in Linux using MingW32
Post by: szurilo on February 28, 2008, 06:49:35 pm
i guess you should set the Target Otions Type to Consol application in the Build Targets Tab (Project/Properties...)


Szurilo
Title: Re: Cross Compiling in Linux using MingW32
Post by: darthdespotism on February 28, 2008, 09:38:14 pm
Seems like you were trying to debug your Win32 Application - that won't work IMO that easy as the Linux GDB can't understand Windows' PE formated executeables.