Hello,
On RedHat 5.2 and RedHat
6.0,
I try to compile a little
program
but egcs don't find the
functions
that I had in my archive.
Or the same program compile on Suse
6.1
Please Help, this is to make courses for
students !!!
//
=============================
// file f1.cpp
int f1()
{ return 17; } //
============================= // file main.cpp#include <iostream>
int f1(); int main() { cout << f1() << " appel de f1" << endl; return 0; } // ============================= // file success.bash
rm -f *o *a g++ -c *cpp g++ *o -o success1 ./success1 //
============================= // file error.bashar -m libf1.a
ar -qos libf1.a f1.o ar -t libf1.a g++ -L. -lf1 main.o -o error2 |
- Re: egcs and ar wilfrid.gaboriaud
- Re: egcs and ar Michael Ju. Tokarev
- Re: egcs and ar John Summerfield