User forums > General (but related to Code::Blocks)

GCC 4.4.0-tdm-1 for MinGW (with installer)

<< < (9/11) > >>

ollydbg:
Hi.
I searched on Google, but finally return to CB forum again. I find one solution that in this post by Jens.

http://forums.codeblocks.org/index.php/topic,9295.msg66259.html#msg66259


--- Code: ---Using "-gstabs" in "Compiler settings -> Other options" instead works for me.
--- End code ---

This can solve my problem!  :shock:

Edit
I can set breakpoints in a header file, but the program will hit that breakpoint with no line information output :(. this method still can't work.


--- Quote ---Breakpoint 3, 0x00418952 in f1 ()
>>>>>>cb_gdb:
> cont
Breakpoint 4, 0x0041895c in f1 ()
>>>>>>cb_gdb:
> cont
Breakpoint 2, main () at C:/test/inline_test/main.cpp:12
--- End quote ---

Edit2
If I use both -gstabs -gstabs+ , then the problem can totally be solved :D

yipinx:
Hi guys,

does this release support elf32 object, sharedlib and exec files? the last distro didn't... not sure why though... i was forced do use this objdump tool, but that wasn't really compatible either....

why did the mingw guys turned this feature off in the first place.... i know plenty of projects that incorporate there own elf32 object loader into their programs.

cheers,
yipinx

btw.... since you took over the job to make a great install of the mingw distro *THANK YOU*... would you be so kind to repeat that with the latest nightlybuild of codeblocks, since these fellows don't like to make installers either.  :? (or a updatebutton to latest nightlybuild button in codeblocks)

TDragon:
Why should a compiler that targets desktop Windows support ELF in the first place?

And it's not that difficult to download and unpack a Code::Blocks nightly by hand.

nenin:
Hello!
I got odd message with GCC 4.4.0-tdm-1-dw2 after "Compile current file" in C::B

--- Code: ---Compiling: op\op.cpp
Linking console executable: op\op.exe
C:\mingw\lib/libmingw32.a(main.o):main.c:(.text+0x104): undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings

--- End code ---
op\op.exe should not be linked at all...  :shock:

TDragon:
The line "Linking console executable" shows that the link process is being executed by C::B, so this certainly is no fault of TDM-GCC. Since I never use the "Compile current file" command, I'm not sure whether this behavior is expected of Code::Blocks or not.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version