foralex / picoc

Automatically exported from code.google.com/p/picoc
0 stars 0 forks source link

bug? run example 32_led.c. #136

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
result:

C:\Documents and Settings\Administrator\Desktop\picoc\tests>PicocD.exe 32_led.c
                d[n++] = (int)(x%10L) ;
                                    ^
32_led.c:190: invalid operation

os: win32

Original issue reported on code.google.com by angl...@mail.com on 6 Oct 2011 at 8:36

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
version: picocv2.1 
msvc2008

Original comment by angl...@mail.com on 6 Oct 2011 at 8:47

GoogleCodeExporter commented 8 years ago
D:\CppProject\picoc\tests>Picoc.exe 42_function_pointer.c
int (*f)(int) = &fred;
    ^
42_function_pointer.c:9: bad type declaration

Original comment by angl...@mail.com on 6 Oct 2011 at 9:02

GoogleCodeExporter commented 8 years ago
Hi!
This issue is most likely caused by the exclusion of the '%' operator. Try 
commenting out the #define NO_MODULUS (in platform_win32.h). See also issue 134.

Jørgen

Original comment by jjohans...@gmail.com on 6 Oct 2011 at 9:03

GoogleCodeExporter commented 8 years ago
stdlib.c has exit() function.

D:\CppProject\picoc\tests>Picoc.exe 46_grep.c
?GREP-E-No arguments
Usage: grep [-cfnv] pattern [file ...].  grep ? for help
   exit(1);
       ^
46_grep.c:129: 'exit' is undefined

Original comment by angl...@mail.com on 6 Oct 2011 at 9:14

GoogleCodeExporter commented 8 years ago
Oh, Thank you jorgen.
I'll try it.

Original comment by angl...@mail.com on 6 Oct 2011 at 9:16

GoogleCodeExporter commented 8 years ago
This one seems to be resolved. Closing.

Original comment by zik.sale...@gmail.com on 9 Sep 2012 at 8:37