![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C compile error | kuampang | High Level Programming | 3 | 11-29-2006 09:30 PM |
| compile error message | putput | High Level Programming | 4 | 10-04-2006 01:43 AM |
| Compile error | coulio | High Level Programming | 9 | 06-30-2006 02:43 AM |
| resolve_symbols: loader error: dlopen: | gfhgfnhhn | High Level Programming | 1 | 06-29-2006 07:08 AM |
| Error in compile C by gcc | zico | High Level Programming | 4 | 11-11-2003 11:45 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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 |
|
#3
|
||||
|
||||
|
Quote:
Code:
cc -o testjvm2 testjvm2.c -ldl |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |