![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
JNI and -AA
Hi, I have a Hello World program using JNI taken from this site.
HP Unix - Java - Using Java 2 JNI on HP-UX It builds fine and runs fine. But if I add -AA to my compile line, I get this error. error: java.lang.UnsatisfiedLinkError: libaCCImpl.sl: Unresolved external Here are my build lines: aCC -AA +DA2.0W +z +u4 -c -D_HPUX -D_POSIX_C_SOURCE=199506L -I${JAVA_HOME}/include -I${JAVA_HOME}/include/hp-ux aCCImpl.cpp aCC +DA2.0W -b -o libaCCImpl.sl aCCImpl.o -lstd -lstream -lCsup -lm Can someone tell me how to resolve this problem? uname -a HP-UX hp11i B.11.11 U 9000/800 524736557 unlimited-user license Last edited by cactuar; 08-01-2007 at 09:25 AM. Reason: removing personal folder names |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
I don't think you've posted the complete error. Can you do that? And in the mean time, also check if you have the library file available.
Last edited by blowtorch; 08-01-2007 at 06:26 PM. Reason: requested by o/p |
|
#3
|
|||
|
|||
|
Hi, I am posting the answer I got from someone.
I had to link in -lstd_v2 -lCsup_v2 -lm for -AA. Apparently -lstd -lstream -lCsup -lm are for -AP. Thanks! |
|||
| Google The UNIX and Linux Forums |