[ptx] Gcc 3.4.1 compilation problem

Couriousous couriousous at sceen.net
Sat Jul 10 08:39:16 BST 2004


Hello 

I'm trying to compile the CVS, and I have a strange errors when compiling 
src/tools :

    ---- Compiling autopano.cpp (C++)
g++ -I. -I../include -Wall -O2 -I../foreign  -c -o .obj/autopano.o 
autopano.cpp
In file included from autopano.cpp:32:
../include/vigra_ext/PhaseCorrelation.h: In function `float 
vigra_ext::rhei(double (*)[2], int, int, int, int)':
../include/vigra_ext/PhaseCorrelation.h:53: error: request for member `re' in 
`*((+(((unsigned int)dpos) * 16u)) + data)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h: At global scope:
../include/vigra_ext/PhaseCorrelation.h:84: error: `fftwnd_plan' has not been 
declared
../include/vigra_ext/PhaseCorrelation.h:85: error: ISO C++ forbids declaration 
of `pinv' with no type
../include/vigra_ext/PhaseCorrelation.h: In function 
`vigra_ext::CorrelationResult vigra_ext::phase(double (*)[2], double (*)[2], 
int, int, int, std::string)':
../include/vigra_ext/PhaseCorrelation.h:110: error: request for member `re' in 
`*((+(((unsigned int)dpos) * 16u)) + F1)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h:110: error: request for member `re' in 
`*((+(((unsigned int)dpos) * 16u)) + F2)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h:110: error: request for member `im' in 
`*((+(((unsigned int)dpos) * 16u)) + F1)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h:110: error: request for member `im' in 
`*((+(((unsigned int)dpos) * 16u)) + F2)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h:111: error: request for member `im' in 
`*((+(((unsigned int)dpos) * 16u)) + F1)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h:111: error: request for member `re' in 
`*((+(((unsigned int)dpos) * 16u)) + F2)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h:111: error: request for member `im' in 
`*((+(((unsigned int)dpos) * 16u)) + F2)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h:111: error: request for member `re' in 
`*((+(((unsigned int)dpos) * 16u)) + F1)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h:124: error: request for member `re' in 
`*((+(((unsigned int)dpos) * 16u)) + F1)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h:124: error: request for member `im' in 
`*((+(((unsigned int)dpos) * 16u)) + F1)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h:130: error: `fftwnd_one' undeclared 
(first use this function)
../include/vigra_ext/PhaseCorrelation.h:130: error: (Each undeclared 
identifier is reported only once for each function it appears in.)
../include/vigra_ext/PhaseCorrelation.h:139: error: request for member `re' in 
`*((+(((unsigned int)dpos) * 16u)) + pcs)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h:139: error: request for member `re' in 
`*((+(((unsigned int)dpos) * 16u)) + pcs)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h:140: error: request for member `im' in 
`*((+(((unsigned int)dpos) * 16u)) + pcs)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h:140: error: request for member `im' in 
`*((+(((unsigned int)dpos) * 16u)) + pcs)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h:158: error: request for member `re' in 
`*((+(((unsigned int)dpos) * 16u)) + pcs)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h:158: error: request for member `im' in 
`*((+(((unsigned int)dpos) * 16u)) + pcs)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h:171: error: request for member `re' in 
`*((+(((unsigned int)dpos) * 16u)) + pcs)', which is of non-class type 
`double[2]'
../include/vigra_ext/PhaseCorrelation.h: At global scope:
../include/vigra_ext/PhaseCorrelation.h:376: error: `fftwnd_plan' has not been 
declared
../include/vigra_ext/PhaseCorrelation.h:376: error: `fftwnd_plan' has not been 
declared
../include/vigra_ext/PhaseCorrelation.h:377: error: ISO C++ forbids 
declaration of `fftw_p' with no type
../include/vigra_ext/PhaseCorrelation.h:377: error: ISO C++ forbids 
declaration of `fftw_pinv' with no type
../include/vigra_ext/PhaseCorrelation.h: In function 
`vigra_ext::CorrelationResult 
vigra_ext::phaseCorrelation(vigra::triple<Iterator, Iterator, Accessor>, 
vigra::triple<Iterator, Iterator, Accessor>, int, int, std::string)':
../include/vigra_ext/PhaseCorrelation.h:432: error: request for member `re' in 
`inc[dpos]', which is of non-class type `double[2]'
../include/vigra_ext/PhaseCorrelation.h:432: error: request for member `im' in 
`inc[dpos]', which is of non-class type `double[2]'
../include/vigra_ext/PhaseCorrelation.h:433: error: request for member `re' in 
`inp[dpos]', which is of non-class type `double[2]'
../include/vigra_ext/PhaseCorrelation.h:433: error: request for member `im' in 
`inp[dpos]', which is of non-class type `double[2]'
../include/vigra_ext/PhaseCorrelation.h:441: error: there are no arguments to 
`fftwnd_one' that depend on a template parameter, so a declaration of 
`fftwnd_one' must be available
../include/vigra_ext/PhaseCorrelation.h:441: error: (if you use 
`-fpermissive', G++ will accept your code, but allowing the use of an 
undeclared name is deprecated)
../include/vigra_ext/PhaseCorrelation.h:442: error: there are no arguments to 
`fftwnd_one' that depend on a template parameter, so a declaration of 
`fftwnd_one' must be available
autopano.cpp: In function `int main(int, char**)':
autopano.cpp:246: error: `fftwnd_plan' undeclared (first use this function)
autopano.cpp:246: error: expected `;' before "fftw_p"
autopano.cpp:247: error: `fftw_p' undeclared (first use this function)
autopano.cpp:247: error: `fftw2d_create_plan' undeclared (first use this 
function)
autopano.cpp:248: error: `fftw_pinv' undeclared (first use this function)
autopano.cpp:398: error: `fftwnd_destroy_plan' undeclared (first use this 
function)
make: *** [.obj/autopano.o] Erreur 1


Anyone knows how to correct it ?

Regards
Couriousous



More information about the ptX mailing list