|
|
#1 |
|
Junior Member
![]() 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. |
|
|
|
|
|
#2 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
You can run an attachment search on me, I have a post with up to date tcc binaries that I update periodically.
There's a good chance the issue was fixed upstream, as such, newer binaries would do the trick. EDIT: On the off-chance it's a weird tcc issue, here's a one built w/ gcc. Last edited by NiLuJe; 09-04-2019 at 09:36 AM. Reason: Direct link, now I'm no longer on mobile. |
|
|
|
|
|
#3 | |
|
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Are you using KUAL? A terminal (which one)? ssh? telnet? Something else? Note: It is very hard to answer a "does not work" question. |
|
|
|
|
|
|
#4 | ||
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Sep 2019
Device: kindle 3
|
Quote:
Quote:
|
||
|
|
|
|
|
#5 | |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Sep 2019
Device: kindle 3
|
Quote:
./awale: /lib/libc.so.6: version `GLIBC_2.7' not found (required by ./awale) When I try to compile using the newer tcc on the kindle I get: awale.c:414 error:incompatible types for redefinition of 'best_move' I've never gotten this error compiling with either gcc or tcc on my laptop, and I know a little C, and can't see where the problem is. Again, thank you so much for trying. |
|
|
|
|
![]() |
| Tags |
| tcc, tinycc |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Having problems compiling gtk code for kindle touch | jacobr8893 | Kindle Developer's Corner | 6 | 01-12-2017 02:41 PM |
| Glo Problems compiling Qt for Kobo Glo | j4GGy | Kobo Developer's Corner | 6 | 08-03-2013 10:25 AM |
| Problems compiling calibre | DOMBlogger | Development | 2 | 01-23-2012 05:48 AM |
| Problems compiling | unkilbeeg | Sigil | 1 | 09-13-2009 02:49 PM |
| Problems compiling eb1150 on Ubuntu Intrepid | luqmaninbmore | Fictionwise eBookwise | 10 | 01-15-2009 08:14 PM |