05-18-07 06:23 PM
On May 17, 7:31 pm, Paul Pluzhnikov <ppluzhnikov-...@charter.net>
wrote:
> linq...@hotmail.com writes:
>
> You can't build 1.so into 2.so on any UNIX system except AIX (and
> even then only with some hacks).
>
> On most other UNIXes (including Solaris) the .so file is "fully
> prepared"; you can't build it into anything, you can only use it.
>
>
> Probably because they aren't.
>
>
> You can see which symbols it defines with 'nm'.
>
>
> I can tell you right away -- it isn't.
>
> Cheers,
> --
> In order to understand recursion you must first understand recursion.
> Remove /-nsp/ for email.
Yes, you are right. I checked again, it is like this:
1.h declares function
1.c == compiled into ==> 1.so
2.c includes 1.h and calls functions defined in 1.c and 2.c is
compiled into 2.so.
Now in linking the final executable, I get "Undefined first
referenced" from 2.so and the errors are all from 1.c. I checked the
command line, 1.so is not there. This explains it.
Thanks a lot.
[ Post a follow-up to this message ]
|