View Single Post
Old 09-03-2019, 10:36 PM   #1
kelmscott
Junior Member
kelmscott began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2019
Device: kindle 3
getopt problems when compiling with TCC on kindle 3

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, 127 views)
kelmscott is offline   Reply With Quote