본문 바로가기

컴퓨터/디버깅32

too few arguments to function 에러 메세지는 다음과 같다. 환경: GCC 4.1.2 20080704 (Red Hat 4.1.2-46) on CentOS 5.4 [adnoctum@bioism analysis_code]$ make g++ -c analyse_path_corr2.cpp /home/adnoctum/LJSLibrary/headers/NR_stat.h: In function ‘bool process(const std::string&, int&)’: /home/adnoctum/LJSLibrary/headers/NR_stat.h:9: error: too few arguments to function ‘bool kstwo(const std::vector&, const std::vector&, double*, double*)’ anal.. 2010. 5. 18.
stl_algo.h:2280: error: assignment of read-only location 다음과 같은 에러가 났다. 환경: GCC 4.1.2 20080704 (Red Hat 4.1.2-46) on CentOS 5.4 /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h: In function ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator]’: /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:2359: instan.. 2010. 5. 18.
undefined reference to 다음과 같은 에러가 났다. 환경: GCC 4.1.2 20080704 (Red Hat 4.1.2-46) on CentOS 5.4 [adnoctum@bioism analysis_code]$ make g++ -o analyse_path_corr2 analyse_path_corr2.o /home/adnoctum/LJSLibrary/library/util.o analyse_path_corr2.o: In function `process(std::basic_string const&, int&)': analyse_path_corr2.cpp:(.text+0xc1d): undefined reference to `rank_z_alpha_from_value(std::vector const&, std::vector const&.. 2010. 5. 18.
declaration of OOO shadows a parameter 다음과 같은 에러가 났다. 환경: GCC 4.1.2 20080704 (Red Hat 4.1.2-46) on CentOS 5.4 /LJSLibrary/source/statutil.cpp:386: error: declaration of ‘int rank’ shadows a parameter 에러 메세지는 'int rank'라 선언하는 것이 파라미터를 가린다는 얘기로, 중복선언되어 있음을 짐작할 수 있다. 실제로 에러가 난 부분을 보면 다음과 같다. 373 bool get_rank_list_from_value_list(const std::vector& value, std::vector* rank) 374 { 375 std::vector value_index; 376 std::vector::const_itera.. 2010. 5. 18.