Jump to content
Sign in to follow this  

Recommended Posts

HI,

I am developing an android application where I want to use my labview application algorithms. I just downloaded C code generator but I dont know how to use it-- when I created ".so" file using the generated .c and .h by cygwin there was no error.

But when I run it on my mobile I am getting some error.

I tried simple 'add' code/

C=A+B

How to generate C Code to use it in eclipse.?

Thanks for your time..!!!

Sharon

post-16569-0-34179500-1309336322_thumb.j

MY Android code

post-16569-0-51851700-1309336551_thumb.j

Edited by Sharon_

Share this post


Link to post
Share on other sites

By just looking at your screen captures I can tell you are not passing correct data type to your dll. Of course posting source code can calp you more.

You are defining your ADD function with aDD( char a, char b, uchar *c)

but calling with aDD(int,int);

1: Char and Int are two very different data type.

2: Char would not be first choise for an ADD parameter, int or double;

3: char *, is also not a very good choice for return parameter.

Hope this helps

Share this post


Link to post
Share on other sites

Hi sam,Thanks.

There is also a C Code example project available in examples folder.

I want exactly is in the ' Exported as Lib' folder. I have also attached the snapshot of the file. But I dont know how to generate a .c file that.

Please help..!!!

post-16569-0-62524100-1309516554_thumb.j

Sharon

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.