From: Felix N. <fel...@sm...> - 2010-12-03 15:35:22
|
hello, I have a simple C++ program which compiles fine under Linux, but gives the following error on MingGW32: $ mingw32-make entropy.o g++ -DNR=0 -O3 -Winline --param large-function-growth=10000 --param max-inline-insns-single=10000 --param inline-unit-growth=10000 -Wno-deprecated -c entropy.cpp In file included from entropy.cpp:6: convolution.h: In function `flock* file_lock(short int, short int)': convolution.h:84: error: aggregate `flock ret' has incomplete type and cannot be defined convolution.h: In function `void init_fftw()': convolution.h:100: error: `F_SETLKW' was not declared in this scope convolution.h:100: error: `F_RDLCK' was not declared in this scope convolution.h:100: error: `fcntl' was not declared in this scope convolution.h: In function `void save_fftw()': convolution.h:116: error: `F_SETLKW' was not declared in this scope convolution.h:116: error: `F_WRLCK' was not declared in this scope convolution.h:116: error: `fcntl' was not declared in this scope mingw32-make: *** [entropy.o] Error 1 But <fcntl.h> seems to be included. convolution.h is attached (it's open source). Thanks in Advance! -- Felix Natter |