From: Stefan J. <st...@gr...> - 2006-02-22 12:52:26
|
On Mi, 22.02.2006, 13:35, Thomas F. Bechteler wrote: > Dear Qucs-Team! Hello Thomas! > I tried to install "qucs-0.0.8" on my > SuSE 9.0 system. First I had to point to > my QT3 header files in /usr/lib/qt3/include > It would be nice to include this directory > in the configure file by default, since this directory > is the default directory for qt3 under SuSE. An export QTDIR=/usr/lib/qt3 wouldn't have worked? > During running "make" I faced several problems. > Some cpp-files needed #include <stdlib.h>. Which files? So I can fix it in the next release... > The last error I couldn't recover: > > ================================================= > make[2]: Entering directory `/home/thomas/Programs/science/qucs-0.0.8/ > qucs-filter' > if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/lib/qt3/ > include -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -O2 -pipe -MT > qucsfilter.o -MD -MP -MF ".deps/qucsfilter.Tpo" -c -o qucsfilter.o > qucsfilter.cpp; \ > then mv -f ".deps/qucsfilter.Tpo" ".deps/qucsfilter.Po"; else rm -f > ".deps/ > qucsfilter.Tpo"; exit 1; fi > In file included from qucsfilter.cpp:41: > qf_filter.h:105: error: syntax error before `(' token > qf_filter.h:106: error: syntax error before `(' token > qf_filter.h:112: error: syntax error before `(' token > qucsfilter.cpp: In member function `QString* > QucsFilter::calculateFilter(tFilter*)': > qucsfilter.cpp:271: error: `to_qucs' undeclared (first use this function) > qucsfilter.cpp:271: error: (Each undeclared identifier is reported only > once > for each function it appears in.) > make[2]: *** [qucsfilter.o] Error 1 > make[2]: Leaving directory `/home/thomas/Programs/science/qucs-0.0.8/ > qucs-filter' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/thomas/Programs/science/qucs-0.0.8' > make: *** [all] Error 2 > ==================================================== > > > > The lines No. 105, 106 and 112 of the file "qf_filter.h" are: > ============================== > std::string to_qucs (void); // Outputs Qucs > > std::string to_spice (void); // Outputs SPICE > > std::string num2str (double); > > ============================== > > > If you could help to solve this problem, I would be glad. Place a #include <string> in qucsfilter.cpp. Hope this helps, Stefan. |