Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50094

getopt problems when compiling with TCC on kindle 3

$
0
0
Hey everyone - new forum member,

I'm using the tinycc (tcc) package created by geekmaster to compile a small C program which plays the game oware in the console (MyTs) on a kindle 3. Everything seems to work fine except that when I execute the binary none of the arguments seem to be passed to the compiled program. I'm not a programmer but assume this has something to do with getopt.

On my laptop running Arch Linux I've compiled the same program with an x86-64 version of tcc using the include files that come in the kindle-tcc package and the arguments work.

So I'm wondering if either anyone might have a clue what the issue is, or might have the necessary tool-chain built to cross-compile the attached file (awale.txt - I had to use txt for it to upload but it is a C program).

Thanks in advance for any help.

Attached Files
File Type: txt awale.txt (23.2 KB)

Viewing all articles
Browse latest Browse all 50094

Latest Images

Trending Articles



Latest Images