This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: failure to construct global object



I link with g++.  My link line follows.

g++ -rdynamic /home/gisli/ADAMS/WORK/adamscxx/lib/Linux/libAsComline.so /home/gisli/ADAMS/WORK/3rdparty/Linux/amdstub.o  -L/home/gisli/ADAMS/WORK/adamscxx/lib/Linux -lAsSystem -lAsAMD -lAsMath -lAsAPI -lAsUsersub -lAsAs -lAsModes -lAsUtils -lAsParametric -lAsLinear -lAsEqnset -lAsSolverEvent -lAsol -lAsEventWrap -lAsLicense -L/home/gisli/ADAMS/WORK/mdiToolKit/lib/Linux -lAsEvent -lMdiGeom -L/home/gisli/ADAMS/WORK/3rdparty/Linux -lamd -lmdiloader /home/gisli/ADAMS/WORK/3rdparty/Linux/flxout.o  -lg2c -ldl  -o /home/gisli/ADAMS/WORK/adamscxx/bin/Linux/adamscxx

I don't think I have said this before, but in case it matters I have
access to two Linux machines.  One machine is running GCC-2.95.2 and
binutils-2.9.5 from a Mandrake distribution.  The other runs
egcs-1.1.2, binutils-2.9.1.0 from RedHat rpms.  Both fail identically.

Gisli

>>>>> On 08 Mar 2000 00:06:24 -0300, you said:
 
  AO> On Mar  7, 2000, Gisli Ottarsson <gisli@adams.com> wrote:

  >>>> The problem seems to be that the constructor for this object is never
  >>>> called.  

  >>>>>>> On Mon, 6 Mar 2000 09:39:52 +0100, Martin v. Loewis said:
 
  MvL> Thanks for your bug report. Without seeing any details, I'd
  MvL> claim that the compiler is working properly, and that you made
  MvL> some mistake. 

  >> Fair enough.  Let me try to change your mind.

  AO> Before I join this discussion: how are you linking the executable?
  AO> Are you using `g++' or running `ld' directly?  The latter isn't
  AO> supposed to work, and this is one of the symptoms.

  AO> -- 
  AO> Alexandre Oliva     http://www.ic.unicamp.br/~oliva/     Enjoy Guaranį
  AO> Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
  AO> Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
  AO> oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]