Thank you very much Andrew, your suggestion indeed solved the problem. And thanks also for your fast answer! :-)
Cheers, Carlo On Tue, Nov 15, 2011 at 6:49 PM, Andrew Pinski <pins...@gmail.com> wrote: > On Tue, Nov 15, 2011 at 9:34 AM, Carlo Pinciroli <ilpi...@gmail.com> wrote: >> >> Dear forum, >> >> I have a problem with linking of a program I have wrote. Instead of giving >> you the entire program, which is pretty large, I have prepared a basic >> example that you can find attached to this message. The example uses CMake >> to compile. >> >> I have three files: > > Sounds like --as-needed is the default with the linker you are using. > That is GCC is not the issue but rather the defaults with the distros > you are using are different. > > Thanks, > Andrew Pinski > -- Guarda l'apina che vola gaudente A questo e quel ramo lei passa radente Poi vede qualcosa, si posa su un fiore Io prendo il giornale, la schiaccio e lei muore. Invia il necrologio a ilpi...@gmail.com. Look at the bee that happily flits >From tree to tree no branches she hits Then something she sees, to the flower she flies I take the newspaper, swat her and she dies. Send the necrology to ilpi...@gmail.com.