"cstrato@EUnet.at" <cstrato@EUnet.at> writes: > Hi Jiri > > Thank you for your hint, sorrowly it does not work. > I get the following pattern: > > g++ -O -o Mygui Mygui.o MyguiDict.o -L. -lMyClassB -lMyClassA > ./libMyClassB.so: undefined reference to ctors of libMyClassA > > g++ -O -o Mygui Mygui.o MyguiDict.o -L. -lMyClassA -lMyClassB > ./Mygui.o: undefined reference to ctors of libMyClassB > > g++ -O -o Mygui Mygui.o MyguiDict.o -L. -lMyClassB -lMyClassA -lMyClassB > ./libMyClassB.so: undefined reference to ctors of libMyClassA > > g++ -O -o Mygui Mygui.o MyguiDict.o -L. -lMyClassA -lMyClassB -lMyClassA > ./Mygui.o: undefined reference to ctors of libMyClassB > Hi Christian, can you try the following g++ -O -o Mygui Mygui.o MyguiDict.o -L. \ -Wl,--start-group -lMyClassB -lMyClassA -Wl,--end-group it should make the linker search within the archives until all undefined symbols are resolved. It seems to work in my test case. Jiri
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:58 MET