From: <chl...@gm...> - 2008-04-20 22:20:35
|
Hello, i already sucessfully built Qucs 13 on my system. Trying to build release 14 on the same system i get following error: if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../src/math -I../src/components -O2 -pipe -fno-exceptions -fno-rtti -fno-check-new -MT check_touchstone.o -MD -MP -MF ".deps/check_touchstone.Tpo" hstone.o check_touchstone.cpp; \ then mv -f ".deps/check_touchstone.Tpo" ".deps/check_touchstone.Po"; else rm -f ".deps/check_touchstone.Tpo"; exit 1; fi check_touchstone.cpp: In function `int touchstone_vector_check()': check_touchstone.cpp:104: error: call of overloaded `sqrt(int)' is ambiguous /usr/include/bits/mathcalls.h:157: error: candidates are: double sqrt(double) vector.h:130: error: vector sqrt(vector) /usr/include/g++/cmath:550: error: long double std::sqrt(long double) /usr/include/g++/cmath:546: error: float std::sqrt(float) make[5]: *** [check_touchstone.o] Fehler 1 Well i do not understand why with qucs 13 there were no compiler errors. However a cast to (double)() in touchstone solves the compiler problem (and the make runns through), but i'am unfortunately not so deep inside the qucs code to judge wheather this is an old libc problem of my system or if it is a serious type conversion problem within touchstone. Another question/remark concerning the same line: Wouldn't it be better to change the division by /2 into /2.0 in touchstone_options.ports = (int) sqrt ((size - 1) / 2) ? Best regards Markus my system: meisi@linux:~/murmel> gcc -v Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.3/specs Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local- prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-lan guages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib --enable-lib gcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zl ib --enable-shared --enable-__cxa_atexit i586-suse-linux Thread model: posix gcc version 3.3.3 (SuSE Linux) meisi@linux:~/murmel/qucs/qucs-0.0.14> rpm -qa | grep libc glibc-locale-2.3.3-98 glibc-devel-2.3.3-97 glibc-2.3.3-97 glibc-html-2.3.3-98 libcap-1.92-479 glibc-info-2.3.3-98 glibc-i18ndata-2.3.3-98 -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser |