Hi everybody,

I want to call a (already compiled) c-program within android.
For example I want to read the status of frontkeys of a tablet PC via
I/O. This is working fine in an extra program.
This extra program now returns the value of a pressed key and android
then should work with it. (fe. make the screen brighter).

I'm trying to call the c-program with
bits9 = system("readFrontKey");

        if (bits9 == 64)
              entryno = 1;

        if (bits9 == 32)
              entryno = 2;

        if (bits9 == 16)
          entryno = 3;


The source-file has stdlib.h included at its beginning.

Unfortunately on compiling and linking the project I get an error.
undefined reference to `system'

I've already been trying several things to solve this but nothing
worked out.
Or do you have other ideas on how to call the readFrontKey-program?

Any advince would be appreciated.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to