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

can't build picoc use BUILTIN_MINI_STDLIB macor #167

Open
GoogleCodeExporter opened this issue Oct 14, 2015 · 2 comments
Open

can't build picoc use BUILTIN_MINI_STDLIB macor #167

GoogleCodeExporter opened this issue Oct 14, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. if use BUILTIN_MINI_STDLIB , can't build it;

What is the expected output? What do you see instead?
A:build error.

What version of the product are you using? On what operating system?
A: svn 2012.09.25

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 25 Sep 2012 at 8:06

@GoogleCodeExporter
Copy link
Author

I'm getting the same issue here. Here's what happens on Slackware 14.0, using 
4.7.1.

What did you do... :P
(Note, "CStdOutBase" is declared in interpreter.h, which is correctly included 
from clibrary.c. *majorly confuzled*)

bash-4.2$ make
gcc -Wall -pedantic -g -DUNIX_HOST -DVER=\"`svnversion -n`\" 
-DBUILTIN_MINI_STDLIB   -c -o picoc.o picoc.c
gcc -Wall -pedantic -g -DUNIX_HOST -DVER=\"`svnversion -n`\" 
-DBUILTIN_MINI_STDLIB   -c -o table.o table.c
gcc -Wall -pedantic -g -DUNIX_HOST -DVER=\"`svnversion -n`\" 
-DBUILTIN_MINI_STDLIB   -c -o lex.o lex.c
gcc -Wall -pedantic -g -DUNIX_HOST -DVER=\"`svnversion -n`\" 
-DBUILTIN_MINI_STDLIB   -c -o parse.o parse.c
gcc -Wall -pedantic -g -DUNIX_HOST -DVER=\"`svnversion -n`\" 
-DBUILTIN_MINI_STDLIB   -c -o expression.o expression.c
gcc -Wall -pedantic -g -DUNIX_HOST -DVER=\"`svnversion -n`\" 
-DBUILTIN_MINI_STDLIB   -c -o heap.o heap.c
gcc -Wall -pedantic -g -DUNIX_HOST -DVER=\"`svnversion -n`\" 
-DBUILTIN_MINI_STDLIB   -c -o type.o type.c
gcc -Wall -pedantic -g -DUNIX_HOST -DVER=\"`svnversion -n`\" 
-DBUILTIN_MINI_STDLIB   -c -o variable.o variable.c
gcc -Wall -pedantic -g -DUNIX_HOST -DVER=\"`svnversion -n`\" 
-DBUILTIN_MINI_STDLIB   -c -o clibrary.o clibrary.c
clibrary.c: In function 'BasicIOInit':
clibrary.c:98:20: error: 'CStdOutBase' undeclared (first use in this function)
clibrary.c:98:20: note: each undeclared identifier is reported only once for 
each function it appears in
clibrary.c: In function 'CLibraryInit':
clibrary.c:105:50: error: 'IntType' undeclared (first use in this function)
clibrary.c: In function 'PrintUnsigned':
clibrary.c:160:9: warning: passing argument 1 of 'PrintRepeatedChar' makes 
pointer from integer without a cast [enabled by default]
clibrary.c:131:6: note: expected 'struct Picoc *' but argument is of type 'int'
clibrary.c:160:9: warning: passing argument 3 of 'PrintRepeatedChar' makes 
integer from pointer without a cast [enabled by default]
clibrary.c:131:6: note: expected 'int' but argument is of type 'struct 
OutputStream *'
clibrary.c:160:9: error: too few arguments to function 'PrintRepeatedChar'
clibrary.c:131:6: note: declared here
clibrary.c:165:9: warning: passing argument 1 of 'PrintRepeatedChar' makes 
pointer from integer without a cast [enabled by default]
clibrary.c:131:6: note: expected 'struct Picoc *' but argument is of type 'int'
clibrary.c:165:9: warning: passing argument 3 of 'PrintRepeatedChar' makes 
integer from pointer without a cast [enabled by default]
clibrary.c:131:6: note: expected 'int' but argument is of type 'struct 
OutputStream *'
clibrary.c:165:9: error: too few arguments to function 'PrintRepeatedChar'
clibrary.c:131:6: note: declared here
clibrary.c: In function 'GenericPrintf':
clibrary.c:265:40: error: 'CharPtrType' undeclared (first use in this function)
clibrary.c:266:81: error: 'IntType' undeclared (first use in this function)
clibrary.c:268:41: error: 'FPType' undeclared (first use in this function)
clibrary.c: In function 'LibExit':
clibrary.c:369:5: warning: passing argument 1 of 'PlatformExit' makes pointer 
from integer without a cast [enabled by default]
In file included from picoc.h:19:0,
                 from clibrary.c:4:
interpreter.h:600:6: note: expected 'struct Picoc *' but argument is of type 
'int'
clibrary.c:369:5: error: too few arguments to function 'PlatformExit'
In file included from picoc.h:19:0,
                 from clibrary.c:4:
interpreter.h:600:6: note: declared here
make: *** [clibrary.o] Error 1
bash-4.2$

Original comment by [email protected] on 12 Aug 2013 at 12:34

@GoogleCodeExporter
Copy link
Author

Attached a patch (picoc-mini-stdlib-r608.patch) against subversion revision 608 
that makes picoc compile with the BUILTIN_MINI_STDLIB define.

Original comment by [email protected] on 13 Apr 2014 at 2:41

Attachments:

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