This is the mail archive of the gcc@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]

Template instanciation on AIX4.3


Hi everybody,

This is I guess a question you have answered many times
regarding gcc-2.95.2.

I try to make automatic template instanciation on AIX4.3 
targets using the '-fprepo' flag. On all other platforms
this seems to work fine (recompilation takes place in order
to instanciate templates)..

On AIX4.3 targets, the collect2 program does not seem to parse
correctly the ouptut of AIX linker and templates are not
generated.

This is a VERY small example, where I want to provide the 
function int blabla() in a library:

blabla.cc:
==========

#include <list>
int blabla() {

  std::list<int> blalist ;
  blalist.push_back(0) ;
  return *blalist.begin() ;
}

I do this:

> gcc -frepo -c blabla.cc
> gcc -frepo blabla.o
> ar rcv libblabla.a blabla.o

This does not work for AIX4.3. Is there a work-around, a
path to collect2 or equivalent ? (GNU ld does not seem to 
work on AIX4.3 ).

Thank you for your time and your help.
Best regards,
                Phil.
-- 
___________________________________________________________
Philippe Nobili
CGG
Office M1 335
1, rue Leon Migaux, 91341 Massy Cedex

Tel : 01 64 47 40 90
Fax : 01 64 47 45 14         E-mail : pnobili@cgg.com
___________________________________________________________

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