Skip to Main Content

Compiling C++ Code in RedHat Linux 4.1.2.46 GCC 4.1.2.

822737Nov 4 2011 — edited Nov 7 2011
i want to compile a small C++ code in RedHat Linux. It is an integration with Oracle JNI 1.5.0 .

Can some provide me the correct compilation/linking procedure ? I have created a code as below. It compile well but while executing it is throwing core dum/java core etc.



g++ -I /aime/vimalraj/jdk_sr8/java-s390x-60/include -I /aime/vimalraj/jdk_sr8/java-s390x-60/include/linux -shared readfile.cc -o readfile.so
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked due to inactivity on Dec 5 2011
Added on Nov 4 2011
3 comments
1,662 views