"Rob_pg" <robert7390@comcast.net> writes:
> Thanks for the tip, I altered the gcc invocation as follows:
> Here are the two gcc invocations originally creating the shared library:
> gcc -Wall -fPIC -c mylibrary.c -o mylibrary.o \
> -I $(A) -I $(B) -I $(C) -I $(E) -lhdfs
> gcc -I $(A) -I $(B) -I $(C) -I $(E) -shared\
> -Wl,-soname,mylibrary.so -o mylibrary.so mylibrary.o
> Here's the new invocations: I added "-lhdfs" to the second gcc invocation.
Yeah, -l is useless when building a .o file; gcc will just ignore it.
(Conversely, there's not much point in -I switches in a link step.)
regards, tom lane