Different linking behavior between g++ 4.5.2 and 4.6.1

2011-11-15 Thread Carlo Pinciroli
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: = LIB2.CPP = #include

Re: Different linking behavior between g++ 4.5.2 and 4.6.1

2011-11-15 Thread Carlo Pinciroli
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 wrote: > On Tue, Nov 15, 2011 at 9:34 AM, Carlo Pinciroli wrote: >> >> Dear forum, >> >> I