The Artima Developer Community
Sponsored Link

Java Answers Forum
JNI help

1 reply on 1 page. Most recent reply: Jan 10, 2003 7:00 PM by tim beamish

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
tim beamish

Posts: 2
Nickname: timothy
Registered: Jan, 2003

JNI help Posted: Jan 10, 2003 6:59 PM
Reply to this message Reply
Advertisement
I'm trying to compile the C code portion of the JNI demo on the java.sun.com site. I have all the proper code correct (as taken from the site) but it won't compile. Here's my command and response:

------command-----------------
tbeamish302: gcc -I/project/tim/java-1_4_1_01/j2sdk1.4.1_01/include/ -I/project/tim/java-1_4_1_01/j2sdk1.4.1_01/include/linux/ HelloWorldImp.c
-------response------------------
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
---------------------------------

Does anyone know why this isn't working? Please email me directly at tim_beamish@hotmail.com

Thanks,
Tim


tim beamish

Posts: 2
Nickname: timothy
Registered: Jan, 2003

Re: JNI help Posted: Jan 10, 2003 7:00 PM
Reply to this message Reply
Sorry that command didn't paste properly. It's supposed to read:

gcc -I/project/tim/java-1_4_1_01/j2sdk1.4.1_01/include/ -I/project/tim/java-1_4_1_01/j2sdk1.4.1_01/include/linux/ HelloWorldImp.c -o libhello.so

Thanks again,
Tim

Flat View: This topic has 1 reply on 1 page
Topic: Please help me! problem with copy Previous Topic   Next Topic Topic: StringBuffers

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use