User forums > Using Code::Blocks

Anyone knowledgeable about g++ (linker options) ?

(1/1)

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?

--- End quote ---

As this option is needed during linking, you should add this to Linker options as -Wl,--export-dynamic .

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.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. :)

Navigation

[0] Message Index

Go to full version