User forums > Using Code::Blocks

linking order [SOLVED]

<< < (2/2)

TDragon:

--- Quote from: Leviathan on June 04, 2006, 12:07:52 pm ---Btw.: I noticed that for the linking-step, g++ is used. Is this hard-coded or is this again a misconfiguration on my part?

--- End quote ---
Neither. It is the default, being the easiest way to do things, but you could change it (no reason to) in the advanced compiler configuration.

Pedantic:
For linking, any of four possible executables (gcc, g++, mingw32-gcc, mingw32-g++) just act as frontends for ld anyway -- just as, in compiling, they act as frontends for cc1 or cc1plus. You can compile C programs with g++ and C++ programs with gcc, as long as you pass the right options.

Leviathan:
Thanks for the explanation. I know that g++ and gcc act as frontends but as far as I understand it, the pass some parameters to the backend depending on the language you're compiling for, so I thought g++ as a frontend to ld might still do something different than gcc.

Navigation

[0] Message Index

[*] Previous page

Go to full version