Re: Compilation error

Pablo Toharia <[email protected]> Tue, 16 Dec 2003 18:29:50 +0100 (CET)
Newsgroups gmane.comp.multimedia.avifile.general
Message-ID <[email protected]>
Hi, I had the same problem and i was able to solve it. I
moved the struct declaration out of the C file and copyed it into de H
file. At this moment I dont have the source here so i cant give you more
datails, if you cant fix it tell me again.

Hope it helps!

Pablo

On Tue, 16 Dec 2003 [email protected] wrote:

> Getting this error.... and I'm having big trouble finding the cause. I'm no C expert I'm afraid.
> 
> Can anybody help, or point me in the right direction?
> 
> Thanks....
> 
> make[2]: Entering directory `/home/howard/Documents/download/avifile-0.7-0.7.38/lib'
> /bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../include     -DPLUGIN_PATH=\"/usr/local/lib/avifile-0.7\"  -I./../ffmpeg/libavcodec -I./../ffmpeg/libavformat -Wall -Wno-unused -I../include -finline-limit-200 -O2 -mcpu=i686 -march=i686 -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -pipe -c codeckeeper.cpp
> c++ -DHAVE_CONFIG_H -I. -I. -I../include -DPLUGIN_PATH=\"/usr/local/lib/avifile-0.7\" -I./../ffmpeg/libavcodec -I./../ffmpeg/libavformat -Wall -Wno-unused -I../include -finline-limit-200 -O2 -mcpu=i686 -march=i686 -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -pipe -c codeckeeper.cpp  -fPIC -DPIC -o codeckeeper.lo
> In file included from codeckeeper.cpp:73:
> ./plugins/libwin32/loader/ldt_keeper.c: In function `avm::ldt_fs_t*
>    avm::Setup_LDT_Keeper()':
> ./plugins/libwin32/loader/ldt_keeper.c:161: error: aggregate `
>    avm::modify_ldt_ldt_s array' has incomplete type and cannot be defined
> ./plugins/libwin32/loader/ldt_keeper.c:193: error: invalid application of `
>    sizeof' to an incomplete type
> make[2]: *** [codeckeeper.lo] Error 1
> make[2]: Leaving directory `/home/howard/Documents/download/avifile-0.7-0.7.38/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/howard/Documents/download/avifile-0.7-0.7.38/lib'
> make: *** [all-recursive] Error 1
> 
> 
> _______________________________________________
> Avifile mailing list
> [email protected]
> http://prak.org/mailman/listinfo/avifile
>