From: William S F. <ws...@fu...> - 2006-07-12 20:32:43
|
William King wrote: > There were a few errors on the email I sent before, so try to help me by this one. > > When compiling, I'm getting a few warnings and errors. I created > the interface file like explained in the tutorial. No errors when > compiling the c file, the errors and warnings occur during the > compilation of the wrap.c file. > > I have some 'implicit declaration of function' warnings and one > 'storage size of 'arg2' isn't known and one error 'dereferencing > pointer to incomplete type'. > > Obviously I don't expect any easy solution by giving this much > information, but I want some suggestions on what should I try or > what I possibly am doing wrong. I hope someone can direct me on the > right direction. > > Notice that it's only a small c file with a few functions. It works > perfectly in c. > > Look at the errors. I hope to open some dialog so I can find the > answer. I will reply to any questions so to help you help me. > >> do_something_wrap.c: In function `_wrap_do_something': >> do_something_wrap.c:3044: warning: implicit declaration of function >> `do_something' >> do_something_wrap.c: In function `_wrap_do_something2': >> do_something_wrap.c:3068: warning: implicit declaration of function >> `do_something2' >> do_something_wrap.c: In function `_wrap_do_something3': >> do_something_wrap.c:3092: warning: implicit declaration of function >> `do_something3' >> do_something_wrap.c: In function `_wrap_do_something4': >> do_somethingwrap.c:3116: warning: implicit declaration of function >> `do_something4' >> do_something_wrap.c: In function `_wrap_do_something5': >> do_something_wrap.c:3140: warning: implicit declaration of function >> `do_something5' >> do_something_wrap.c: In function `_wrap_do_something6': >> do_something_wrap.c:3165: warning: implicit declaration of function >> `do_something6' >> do_something_wrap.c: In function `_wrap_do_something7 >> do_something_wrap.c:3190: warning: implicit declaration of function >> `do_something7' >> do_something_wrap.c: In function `_wrap_do_something8: >> do_something_wrap.c:3214: warning: implicit declaration of function >> `do_something8' >> do_something_wrap.c: In function `_wrap_do_something9: >> do_something_wrap.c:3248: warning: implicit declaration of function >> `do_something9' >> do_something_wrap.c: In function `_wrap_do_something10 >> do_something_wrap.c:3282: warning: implicit declaration of function >> `do_something10' >> do_something_wrap.c: In function `_wrap_do_something11': >> do_something_wrap.c:3317: warning: implicit declaration of function >> `do_something11' >> do_something_wrap.c: In function `_wrap_do_something12': >> do_something_wrap.c:3332: error: storage size of 'arg2' isn't known >> do_something_wrap.c:3356: error: dereferencing pointer to incomplete type >> do_something_wrap.c:3359: warning: implicit declaration of function >> `do_something12' >> do_something_wrap.c:3332: warning: unused variable `arg2' >> do_something_wrap.c: In function `_wrap_do_something13': >> do_something_wrap.c:3372: error: storage size of 'arg2' isn't known >> do_something_wrap.c:3396: error: dereferencing pointer to incomplete type >> do_something_wrap.c:3399: warning: implicit declaration of function >> `do_something13' >> do_something_wrap.c:3372: warning: unused variable `arg2' >> do_something_wrap.c: In function `_wrap_do_something14': >> do_something_wrap.c:3433: warning: implicit declaration of function >> `do_something14' >> do_something_wrap.c: In function `_wrap_do_something15': >> do_something_wrap.c:3459: warning: implicit declaration of function >> `do_something15' >> do_something_wrap.c: In function `_wrap_do_something16': >> do_something_wrap.c:3483: warning: implicit declaration of function >> `do_something16' >> error: command 'gcc' failed with exit status 1 > If you've done any c coding before you'll probably recognise that you havn't added the declaration to these missing types and functions into the wrappers. Look at the examples - you'll need the header file placed within a %{ %}. William |