kostyll / tinypy

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

build libtinypy.a error for embedding #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. in the top dir, execute:
python setup.py blob

2. then enter build/ subdir, execute:
gcc -o tinypy.o -c tinypy.c

What is the expected output? What do you see instead?

It shoud have compiled out tinypy.o normally, but it didn't, meanwhile it
complains:

will complain:

tinypy.c:6378: error: expected declaration specifiers or '...' before
numeric constant
tinypy.c:6378: error: conflicting types for 'calloc'
tinypy.c: In function 'calloc':
tinypy.c:6379: error: too many arguments to function 'calloc'
tinypy.c:6382: error: 'tp' undeclared (first use in this function)
tinypy.c:6382: error: (Each undeclared identifier is reported only once
tinypy.c:6382: error: for each function it appears in.)
tinypy.c: In function 'free':
tinypy.c:6392: error: 'tp' undeclared (first use in this function)
tinypy.c: In function 'realloc':
tinypy.c:6405: error: 'tp' undeclared (first use in this function)
tinypy.c:6414: error: too many arguments to function 'calloc'

Please use labels and text to provide additional information.

blob, embedding, libtinypy.a

Original issue reported on code.google.com by ybc2084@gmail.com on 11 Nov 2009 at 10:54

GoogleCodeExporter commented 9 years ago
I have fixed this bug and tested it.

Original comment by ybc2084@gmail.com on 11 Nov 2009 at 11:07