New issue 45 by ybc2084: build libtinypy.a error for embedding
http://code.google.com/p/tinypy/issues/detail?id=45
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
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Comment #1 on issue 45 by ybc2084: build libtinypy.a error for embedding
http://code.google.com/p/tinypy/issues/detail?id=45
I have fixed this bug and tested it.