Try to place -lfl _after_ main.o file.
And also this may be confused with -lfl at /usr/lib --
flex library, try to give -v flag also.
Note that your letter, I think, is off-topic here.
> "wilfrid.gaboriaud" wrote:
>
> 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.bash
> ar -m libf1.a
> ar -qos libf1.a f1.o
> ar -t libf1.a
> g++ -L. -lf1 main.o -o error2
--
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null