Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug? run example 32_led.c. #136

Closed
GoogleCodeExporter opened this issue Oct 14, 2015 · 7 comments
Closed

bug? run example 32_led.c. #136

GoogleCodeExporter opened this issue Oct 14, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 6 Oct 2011 at 8:36

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

version: picocv2.1 
msvc2008

Original comment by [email protected] on 6 Oct 2011 at 8:47

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 6 Oct 2011 at 9:02

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 6 Oct 2011 at 9:03

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 6 Oct 2011 at 9:14

@GoogleCodeExporter
Copy link
Author

Oh, Thank you jorgen.
I'll try it.

Original comment by [email protected] on 6 Oct 2011 at 9:16

@GoogleCodeExporter
Copy link
Author

This one seems to be resolved. Closing.

Original comment by [email protected] on 9 Sep 2012 at 8:37

  • Changed state: Verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant