News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Anyone knowledgeable about g++ (linker options) ?

Started by johne53, September 29, 2007, 03:16:28 PM

Previous topic - Next topic

johne53

This isn't a question about how to program - it's a question about how to implement a particular linker option, using Code::Blocks.  :)

I'm trying to adapt a project (that's currently built using Scons) so that it can be built using C::B. At various points, the Scons build sends linker options to the (g++) compiler of the type -Wl,--export-dynamic

If I understand the documentation correctly, this causes the compiler to pass --export-dynamic to the linker. How would I implement this within a C::B project? Should I set up a compiler option of the form -Wl,--export-dynamic or should I set up a linker option of the form --export-dynamic ? Or doesn't it matter?

Biplab

Quote from: johne53 on September 29, 2007, 03:16:28 PM
How would I implement this within a C::B project? Should I set up a compiler option of the form -Wl,--export-dynamic or should I set up a linker option of the form --export-dynamic ? Or doesn't it matter?

As this option is needed during linking, you should add this to Linker options as -Wl,--export-dynamic .
Be a part of the solution, not a part of the problem.

johne53

Thanks Biplap. Incidentally, Just this minute I've tracked down one of the problems that's been causing those strange crashes that I reported on this thread:-

http://forums.next.codeblocks.org/index.php/topic,6944.0.html

I'll be posting a full description there within the next few minutes....

Biplab

Nice to know that. That would help us pin-point the crash. :)
Be a part of the solution, not a part of the problem.