On Sun, 22 Apr 2012, Andreas Tille escribió: > Hi, > > I tried to follow the hints to fix this problem but failed. > Any more skilled C++ programmer than me who might have a clue? > > Kind regards > > Andreas. > [snip] > ----- Forwarded message from Matthias Klose <d...@debian.org> ----- > sets.cpp:703:31: warning: comparison between signed and unsigned integer > expressions [-Wsign-compare] > sets.cpp:713:43: warning: comparison between signed and unsigned integer > expressions [-Wsign-compare] > sets.cpp:771:37: error: redeclaration of 'std::vector<Individual*>::iterator > i' > sets.cpp:703:12: error: 'int i' previously declared here > sets.cpp: In member function 'vector_t Set::fitLDSetTest(vector_t&, bool)': > sets.cpp:905:31: warning: comparison between signed and unsigned integer > expressions [-Wsign-compare] > sets.cpp:975:34: warning: comparison between signed and unsigned integer > expressions [-Wsign-compare] > sets.cpp: In member function 'vector_t Set::fitStepwiseModel()': > sets.cpp:1042:31: warning: comparison between signed and unsigned integer > expressions [-Wsign-compare] > make[1]: *** [sets.o] Error 1 > make[1]: Leaving directory `/??PKGBUILDDIR??' > make: *** [build-stamp] Error 2 > dpkg-buildpackage: error: debian/rules build gave error exit status 2 >
Hi Andreas, the problem seems to be that the variable "i" was defined at "sets.cpp:703" (see the for(int i...)) and redefined as 'std::vector<Individual*>::iterator i' at sets.cpp:771. Probably renaming i to other name solves the problem. For example: vector<Individual*>::iterator i2 = PP->sample.begin(); while ( i2 != PP->sample.end() ) { (*i2)->missing = (*i2)->flag; ++i2; } Saludos, kix PS. The code is so dirty, with unused variables,... > > > _______________________________________________ > Debian-med-packaging mailing list > debian-med-packag...@lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-packaging > > > ----- End forwarded message ----- > > -- > http://fam-tille.de > > > -- > To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: http://lists.debian.org/20120422194542.ga2...@an3as.eu > -- ||// //\\// Rodolfo "kix" Garcia ||\\// //\\ http://www.kix.es/ -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120422203850.ga17...@osaka.kix.es