Talk:Draw a clock: Difference between revisions
Content added Content deleted
(C99?) |
No edit summary |
||
Line 1: | Line 1: | ||
What is supposed to happen here? I could not get the C code to compile. --[[User:Rdm|Rdm]] 01:50, 4 July 2011 (UTC) |
What is supposed to happen here? I could not get the C code to compile. --[[User:Rdm|Rdm]] 01:50, 4 July 2011 (UTC) |
||
:Oh sorry, should have said it's C99, <code>gcc -std=c99 -Wall -lm stuff.c</code>, for example. --~~ |
:Oh sorry, should have said it's C99, <code>gcc -std=c99 -Wall -lm stuff.c</code>, for example. --~~ |
||
::Ok, I built it |
|||
::<lang bash>$ CFLAGS=-std=c99 make clock</lang> |
|||
::but when I run it my display does not look very clock like: |
|||
::<pre> |
|||
:--::... :----------:: . ..::--- *%* |
|||
. c&- .-.c&: .-:.aa: |
|||
:-. :&c. :-. -&c :-: -#*</pre> |
|||
::could you maybe post a screenshot or something? Thanks. --[[User:Rdm|Rdm]] 13:30, 4 July 2011 (UTC) |
Revision as of 13:30, 4 July 2011
What is supposed to happen here? I could not get the C code to compile. --Rdm 01:50, 4 July 2011 (UTC)
- Oh sorry, should have said it's C99,
gcc -std=c99 -Wall -lm stuff.c
, for example. --~~- Ok, I built it
- <lang bash>$ CFLAGS=-std=c99 make clock</lang>
- but when I run it my display does not look very clock like:
:--::... :----------:: . ..::--- *%* . c&- .-.c&: .-:.aa: :-. :&c. :-. -&c :-: -#*
- could you maybe post a screenshot or something? Thanks. --Rdm 13:30, 4 July 2011 (UTC)