[Gambas-devel] Re: Test component compilation problem...

Rob sourceforge-raindog2 at ...19...
Tue Jan 25 23:08:52 CET 2005


On Tuesday 25 January 2005 07:44, Srikanta Prasanna wrote:
> But 'make' at $ROOT dir used to give me a "Makefile.in not
> found"...so thought of trying this out. :)
> ./reconf does not generate a Makefile.in in my component dir,
> so ./configure gives me that error.

I changed the @XYZ_DIR@ to just xyz in src/lib/Makefile.am (the 
one you originally posted) and did ./reconf, ./configure and 
make. It actually made the src/lib/xyz/Makefile.in and tried to 
compile the component. Unfortunately, then it gave me this 
error:

gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -g -O2 -pipe -Wall 
-fno-strict-aliasing -g -Os -MT main.lo -MD -MP -MF 
.deps/main.Tpo -c main.c  -fPIC -DPIC -o .libs/main.o
In file included from main.c:31:
main.h:27:20: gambas.h: No such file or directory
main.c:34: error: syntax error before "GB"
main.c:34: warning: type defaults to `int' in declaration of `GB'
main.c:34: warning: data definition has no type or storage class
main.c:37: error: syntax error before '*' token
main.c:37: warning: type defaults to `int' in declaration of 
`GB_CLASSES'
main.c:39: error: `CXyzDesc' undeclared here (not in a function)
main.c:39: error: initializer element is not constant
main.c:39: error: (near initialization for `GB_CLASSES[0]')
main.c:42: warning: data definition has no type or storage class
main.c: In function `GB_INIT':
main.c:47: warning: implicit declaration of function `CXyz_init'
main.c: In function `GB_EXIT':
main.c:55: warning: implicit declaration of function `CXyz_exit'
make[4]: *** [main.lo] Error 1
make[4]: Leaving directory 
`/home/schmoe/RPM/BUILD/gambas2-1.9.2/src/lib/xyz'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory 
`/home/schmoe/RPM/BUILD/gambas2-1.9.2/src/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/home/schmoe/RPM/BUILD/gambas2-1.9.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/schmoe/RPM/BUILD/gambas2-1.9.2'
make: *** [all] Error 2

I have no idea what is causing this error, since your code looks 
fine to me, but at least it's trying to compile now.

Rob







More information about the Devel mailing list