I SUCCEED !!!
Thanks a lot to all of you !!!

But my real problem was NOT related to gcc compile command, neither to
java/jni.
No, my problem was becoming from MAVEN.
I have a dir src/main/native, in which I create my ".c" code. I create the
header in this directory too.
Then I compile / link the library and put it in the src/main/resources. And
I update my POM with this:
 <build>
   <resources>
     <resource>
       <directory>src/main/resources</directory>
       <filtering>false</filtering>
     </resource>
   </resources>
   [...]
 <build>
So my library is addeed at the root of the created bundle jar.
But what was my problem, so ?
The parameter 'filtering' was set to 'true', and it seems that change the
library (due to the fact of open and read the library, I suppose).
So I change to false, and all is working fine ...

Hope this will help ...

--
</arnaud>

Reply via email to