Re: Possible issue with c++ linking with g++

2010-11-28 Thread Ralf Wildenhues
* Param Ponnaiyan wrote on Sun, Nov 28, 2010 at 06:50:26PM CET: > If I link it this way > g++ *.o libxxx.a > everything works fine. > BUT if I convert the .o's into a library say libnew.a and separate > main into main.cpp > and link like this > g++ main.cpp libnew.a libxxx.a > then it fails. This

Possible issue with c++ linking with g++

2010-11-28 Thread Param Ponnaiyan
Just wanted to know of the below is a known issue and if there is a fix available for it. I have  700 odd .cpp files which gets converted to .o's. I then need to link them all with a library libxxx.a. If I link it this way g++ *.o libxxx.a everything works fine. BUT if I convert the .o's into a li