News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Strange about compilation

Started by chameleon, November 15, 2006, 02:27:36 PM

Previous topic - Next topic

chameleon

My first use of C::B. Very impressive. A little bit dissapointed by debugger because when I move mouse pointer on a variable, does not display in pop-up the value of this variable. Anyway, good job. If I want it, I can do it!

My question I am not sure that is affected by C::B.

I use `MinGW`.

I compiled `libjpeg` library with `C::B` without any warnings.
I compiled `my_project` executable with `C::B` without any warnings and with *exactly* the same options.
When I run `my_project` it crashes inside a `libjpeg` function.

Then added without any modification of `libjpeg` source, the source of `libjpeg` library into `my_project` and compile again with `C::B` without any warnings.
Now the `my_project` runs ok!

Where is the problem?

I had the same problem in Visual Studio 2005 and after a lot of hours, I found out that, in library struct alignement was 8 bytes and in executable 1 byte.
Is there any posibility for the same problem with MinGW? There is no such option, so I believe not.

Please help. It is silly to include the source of any library to my project ;-)

MortenMacFly

Quote from: chameleon on November 15, 2006, 02:27:36 PM
A little bit dissapointed by debugger because when I move mouse pointer on a variable, does not display in pop-up the value of this variable.
Sure it does: Settings -> Compiler and Debugger -> Debugger Settings -> Activate "Evaluate expression under cursor" and you'll me amazed.
If that's all what made you disappointed we are through now... ;-)
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]