![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C compile error | kuampang | High Level Programming | 3 | 11-30-2006 12:30 AM |
| compile error message | putput | High Level Programming | 4 | 10-04-2006 04:43 AM |
| Compile error | coulio | High Level Programming | 9 | 06-30-2006 05:43 AM |
| resolve_symbols: loader error: dlopen: | gfhgfnhhn | High Level Programming | 1 | 06-29-2006 10:08 AM |
| Error in compile C by gcc | zico | High Level Programming | 4 | 11-12-2003 02:45 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
compile error while using dlopen
Hi unix lovers,
I am getting error while compile a function which uses dlopen. My code is Quote:
Quote:
I am using solaris. Thanks in advance, -Ashish |
|
||||
|
I have made few changes in test program. Added errorno and dlerror() just for error checking
Quote:
when I compile the program I get error Quote:
Quote:
any pointers why the linking error? -Ashish |
|
||||
|
Thanks a lot andryk. It worked on solaris.
I tried the same program on hp-ux. On hp-ux it fails to load jvm library. Quote:
-Ashish |
|
||||
|
Use +z option
hi ,
In Hp-Ux , when creating a shred lib we have to use +z option to create an object file for shared lib , for ex: $cc +z -c share.c -o share.o $ld -b share.o -o share.sl ( to create a shared lib ) Just try this and let me know ! Thanks Narendra |
|
||||
|
Hi Narenadra,
I am not creating shared library. I am just opening it in my program with statement retval = (int)dlopen("libjvm.sl",RTLD_LAZY); -Ashish |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|