This is the mail archive of the gcc-bugs@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] |
| Other format: | [Raw text] | |
To Whom It Concerns I have a probably rather simple question for someone. I am trying to figure out how to use dynamic libraries with my application that I am going to run on Solaris 8 I have included to two source files main.c and sqrint.c I first create the library using the sqrint function with the following command. gcc -c -osqrint.o sqrint.c -fPIC Then I create the library with gcc -shared -fPIC -libshared.so sqrint.o My problem comes when I try to compile the main.c I get unresolved symbols for dlcose,dlopen, and dlsym with are in the dlfcn.h header file. I might not be using the right options to compile with. Any help here would be appreciated. Thanks Steve Gums sgums@voast.com/303-225-3276
Attachment:
main.c
Description: Binary data
Attachment:
sqrint.c
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |