problems building a .SO file on linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



the command line being used is
g++ -shared -ldl dan.o dllmain.o engine.o jfw2.o jfw3.o jfw4.o jfw5.o jfw6.o jfw.o jfwobj.o jfwws.o kak.o neo.o nh.o nhp.o ra2.o reborn.o renalert.o scriptfactory.o scriptregistrar.o scripts.o scud.o survival.o tda.o tfx.o -o scripts-RH73.so
But for some reason g++ spits out scripts-RH73.so? instead of scripts-RH73.so (i.e. with a ? on the end)
Anyone know why this is?
Should I be using ld here instead of g++? (and if so, what do I pass to LD to get what I want?)


The .cpp files are being compiled with g++ -shared -c -Werror -fPIC -O2 $< -o $@
GCC in this case is gcc version 2.95.4 20011002 (Debian prerelease)
LD is GNU ld version 2.12.90.0.1 20020307 Debian/GNU Linux
(and no, upgrading to a new compiler is not an option in this case)


When I did gcc -shared -fPIC *.cpp -lstdc++ -Werror -ldl -O2 -o scripts-RH73.so in my old build system (before I decided to re-do it with a makefile), it spat out scripts-rh73.so correctly.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux