4 messages in net.java.dev.jna.users[jna-users] calling a static function...
FromSent OnAttachments
Travis BanksFeb 3, 2009 2:07 pm 
Daniel KaufmannFeb 3, 2009 3:40 pm 
Steve Sobol (JDN)Feb 3, 2009 5:52 pm 
LYou...@gkservices.comFeb 4, 2009 7:55 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[jna-users] calling a static function from JavaActions...
From:Travis Banks (trav@gmail.com)
Date:Feb 3, 2009 2:07:32 pm
List:net.java.dev.jna.users

Hello All,

I'm having difficulty declaring a method to call a c++ static function from my library interface file. The native signature is; static void bubble(int *data, int num_data); If I use the following Java interface method; static void bubble(int[] data, int num_data); I get an Illegal Modifier error from my IDE (interfaces can only have public and abstract as modifiers. If I remove 'static' from the interface method I get an UnsatisfiedLinkError when I try to run the program (Error looking up function 'bubble').

How can I call the static function 'bubble' from Java? Thanks for any help you can give me.

- Travis