c++- Is it possible to force gcc to compile my_file.cc -


i created library after use library compile excutable program , got fatal error

g++  -o2     -l/home/morad/workdir/library/tklibs/lib -l/home/morad/workdir/layout/lib   -l/usr/lib  -xlinker -start-group  -xlinker -lgeompropagators -xlinker -lpatternprimitives -xlinker -lsurfacegeometry -xlinker -lbasemagneticfield -xlinker -lui -xlinker -lgenutil -xlinker -lsipixeldet -xlinker -lsmearingclusterizers -xlinker -lbasicdet -xlinker -ltrackfitters -xlinker -ltkfastsimhit -xlinker -lcommonstripdet -xlinker -ldetlayout -xlinker -ltklayout -xlinker -ldetgeometry -xlinker -lkalmanupdators -xlinker -ltkcommondet -xlinker -lpatterntools -xlinker -ltrajectoryparametrization -xlinker -lxmlgeom -xlinker -ltrack -xlinker -lcross -xlinker -lmaterialeffects -xlinker -lpropagators -xlinker -ltracking -xlinker -lgeom -xlinker -lstatutilities -xlinker -lanalyticaljacobians -xlinker -lxmltkgeom -xlinker -lutils -xlinker -lopt -xlinker -ldraw -xlinker -lanalyze -xlinker -ldetvolumegeometry -xlinker -lpatterntesttools -xlinker -lrkpropagators -xlinker -lbasicstripdet -xlinker -ldetutilities -xlinker -ltknavigation -xlinker -lnumericaljacobians -xlinker -ltkhist -xlinker -end-group  -lxml++-2.6 -lxml2 -lglibmm-2.4 -lgobject-2.0 -lsigc-2.0 -lglib-2.0  /usr/lib/preloadable_libintl.so -l/cern/root/source/root/lib  /usr/lib/libx11.so -l/cern/minuit2/5.28.00/lib -lcore -lcint -lrio -lnet -lhist -lgraf -lgraf3d -lgpad -ltree -lrint -lpostscript -lmatrix -lphysics -lmathcore -lthread -lfreetype -lz  /usr/lib/libbz2.so.1.0.6 -pthread -wl,-rpath,/cern/root/source/root/lib -lm -ldl  -l/cern/clhep/2.0.4.5/lib/ -lclhep-2.0.4.5 -i/cern/clhep/2.0.4.5/include/  -i/home/morad/workdir/layout -i/home/morad/workdir/library/tklibs  -i/cern/root/source/root/include  -i/usr/include/freetype2/freetype/  -i/usr/include/freetype2 -i/usr/include/libxml2 -i/usr/include/libxml++-2.6 -i/usr/lib/libxml++-2.6/include/ -i/usr/include/glibmm-2.4/ -i/usr/lib/glibmm-2.4/include/ -i/usr/include/sigc++-2.0/ -i/usr/lib/sigc++-2.0/include/ -i/usr/include/glib-2.0/ -i/usr/lib/glib-2.0/include/ -i/cern/gettext/0.18.2/include/ -i/cern/minuit2/5.28.00/include myanalyze.cc -o pol                                                                                                                                                                                                /usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: warning: libminuit2.so.0, needed /home/morad/workdir/layout/lib/libxmlgeom.so, not found (try using -rpath or -rpath-link)                                                                                                                                                                                               /usr/lib/gcc/i586-suse-linux/4.7/../../../crt1.o: in function `_start':                                                                                                                          /home/abuild/rpmbuild/build/glibc-2.15/csu/../sysdeps/i386/elf/start.s:115: undefined reference `main'                                                                                        /home/morad/workdir/library/tklibs/lib/libsmearingclusterizers.so: undefined reference `trivialrousetter::set(module)'                                                                        /home/morad/workdir/library/tklibs/lib/libtklayout.so: undefined reference `fixtidtopology::recreatetopologies()'                                                                             /home/morad/workdir/library/tklibs/lib/libsmearingclusterizers.so: undefined reference `tkdettypename::shortname(dettype const&)'                                                             /home/morad/workdir/library/tklibs/lib/libtklayout.so: undefined reference `detunitgluer::glue(__gnu_cxx::__normal_iterator<detunit**, std::vector<detunit*, std::allocator<detunit*> > >, __gnu_cxx::__normal_iterator<detunit**, std::vector<detunit*, std::allocator<detunit*> > >, __gnu_cxx::__normal_iterator<detunit**, std::vector<detunit*, std::allocator<detunit*> > >, __gnu_cxx::__normal_iterator<detunit**, std::vector<detunit*, std::allocator<detunit*> > >)' /home/morad/workdir/library/tklibs/lib/libtkfastsimhit.so: undefined reference `rawhepeventfactoryfromgun::rawhepeventfactoryfromgun()' /home/morad/workdir/library/tklibs/lib/libtklayout.so: undefined reference `toa::operator()(int const&) const' /home/morad/workdir/library/tklibs/lib/[u]libtklayout.so: undefined reference `fixtidtopology::fixtidtopology()' /home/morad/workdir/library/tklibs/lib/libtklayout.so: undefined reference `detblade::detblade(__gnu_cxx::__normal_iterator<det* const*, std::vector<det*, std::allocator<det*> > >, __gnu_cxx::__normal_iterator<det* const*, std::vector<det*, std::allocator<det*> > >)' /home/morad/workdir/library/tklibs/liblibtklayout.so: undefined reference `toa::~toa()' /home/morad/workdir/library/tklibs/lib/libtklayout.so: undefined reference `fulltracker::instance() collect2: erreur: ld retourné 1 code d'état d'exécution 

knowledge cannot change file *.cc , *.h question is: possible force gcc compile file myfile.cc?


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -