Dear sir/m'me With g++ test.cpp -lcln -lginac -lm (compile command) compiling the the attached programme the following errors occurs: In file included from /usr/include/c++/3.3.3/backward/iostream.h:31, from test.cpp:1: /usr/include/c++/3.3.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider usin g one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <s stream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. test.cpp:2:24: ginac/ginac.h: No such file or directory test.cpp:4: error: namespace `GiNaC' undeclared test.cpp: In function `int main()': test.cpp:8: error: `symbol' undeclared (first use this function) test.cpp:8: error: (Each undeclared identifier is reported only once for each function it appears in.) test.cpp:8: error: syntax error before `(' token test.cpp:9: error: `ex' undeclared (first use this function) test.cpp:12: error: `poly' undeclared (first use this function) test.cpp:12: error: `fractorial' undeclared (first use this function) test.cpp:12: error: `x' undeclared (first use this function) test.cpp:12: error: `y' undeclared (first use this function) [tapan@shaula tapan]$ g++ test.cpp -lcln -lginac -lm In file included from /usr/include/c++/3.3.3/backward/iostream.h:31, from test.cpp:1: /usr/include/c++/3.3.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider usin g one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <s stream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. test.cpp:2:24: ginac/ginac.h: No such file or directory test.cpp:4: error: namespace `GiNaC' undeclared test.cpp: In function `int main()': test.cpp:8: error: `symbol' undeclared (first use this function) test.cpp:8: error: (Each undeclared identifier is reported only once for each function it appears in.) test.cpp:8: error: syntax error before `(' token test.cpp:9: error: `ex' undeclared (first use this function) test.cpp:12: error: `poly' undeclared (first use this function) test.cpp:12: error: `fractorial' undeclared (first use this function) test.cpp:12: error: `x' undeclared (first use this function) test.cpp:12: error: `y' undeclared (first use this functio With command $ locate cln following occure: /usr/share/doc/cln-1.1.7 /usr/share/doc/cln-1.1.7/README /usr/share/doc/cln-1.1.7/TODO /usr/share/doc/cln-1.1.7/NEWS /usr/share/doc/cln-1.1.7/FILES /usr/share/doc/cln-1.1.7/ChangeLog /usr/share/doc/cln-1.1.7/TODO-verylong /usr/share/doc/cln-1.1.7/COPYING /usr/share/doc/cln-1.1.7/TODO-subclass /usr/share/doc/cln-1.1.7 /usr/share/doc/ruby-1.8.1/sample/clnt.rb /usr/share/man/man3/clnt_create.3.gz /usr/share/man/man3/clnt_geterr.3.gz /usr/share/man/man3/clntudp_create.3.gz /usr/share/man/man3/clnt_destroy.3.gz /usr/share/man/man3/clntudp_bufcreate.3.gz /usr/share/man/man3/clnt_freeres.3.gz /usr/share/man/man3/clntraw_create.3.gz /usr/share/man/man3/clnt_broadcast.3.gz /usr/share/man/man3/clnttcp_create.3.gz /usr/share/man/man3/clnt_pcreateerror.3.gz /usr/share/man/man3/clnt_perror.3.gz /usr/share/man/man3/clnt_sperror.3.gz /usr/share/man/man3/clnt_perrno.3.gz /usr/share/man/man3/clnt_sperrno.3.gz /usr/share/man/man3/clnt_call.3.gz /usr/share/man/man3/clnt_control.3.gz /usr/share/man/man3/clnt_spcreateerror.3.gz /usr/share/man/ja/man3/clnt_create.3.gz /usr/share/man/ja/man3/clnt_geterr.3.gz /usr/share/man/ja/man3/clntudp_create.3.gz /usr/share/man/ja/man3/clnt_destroy.3.gz /usr/share/man/ja/man3/clntudp_bufcreate.3.gz /usr/share/man/ja/man3/clnt_freeres.3.gz /usr/share/man/ja/man3/clntraw_create.3.gz /usr/share/man/ja/man3/clnt_broadcast.3.gz /usr/share/man/ja/man3/clnttcp_create.3.gz /usr/share/man/ja/man3/clnt_pcreateerror.3.gz /usr/share/man/ja/man3/clnt_perror.3.gz /usr/share/man/ja/man3/clnt_sperror.3.gz /usr/share/man/ja/man3/clnt_perrno.3.gz /usr/share/man/ja/man3/clnt_sperrno.3.gz /usr/share/man/ja/man3/clnt_call.3.gz /usr/share/man/ja/man3/clnt_control.3.gz /usr/share/man/ja/man3/clnt_spcreateerror.3.gz /usr/share/man/fr/man3/clnt_create.3.gz /usr/share/man/fr/man3/clnt_geterr.3.gz /usr/share/man/fr/man3/clntudp_create.3.gz /usr/share/man/fr/man3/clnt_destroy.3.gz /usr/share/man/fr/man3/clntudp_bufcreate.3.gz /usr/share/man/fr/man3/clnt_freeres.3.gz /usr/share/man/fr/man3/clntraw_create.3.gz /usr/share/man/fr/man3/clnt_broadcast.3.gz /usr/share/man/fr/man3/clnttcp_create.3.gz /usr/share/man/fr/man3/clnt_pcreateerror.3.gz /usr/share/man/fr/man3/clnt_perror.3.gz /usr/share/man/fr/man3/clnt_sperror.3.gz /usr/share/man/fr/man3/clnt_perrno.3.gz /usr/share/man/fr/man3/clnt_sperrno.3.gz /usr/share/man/fr/man3/clnt_call.3.gz /usr/share/man/fr/man3/clnt_control.3.gz /usr/share/man/fr/man3/clnt_spcreateerror.3.gz /usr/share/cvs/contrib/cln_hist /usr/src/linux-2.6.5-1.358/fs/xfs/xfs_clnt.h /usr/src/linux-2.6.5-1.358/fs/nfs/mount_clnt.c /usr/src/linux-2.6.5-1.358/fs/lockd/clntlock.c /usr/src/linux-2.6.5-1.358/fs/lockd/clntproc.c /usr/src/linux-2.6.5-1.358/net/sunrpc/clnt.c /usr/src/linux-2.6.5-1.358/net/sunrpc/pmap_clnt.c /usr/src/linux-2.6.5-1.358/include/linux/sunrpc/clnt.h /usr/lib/libkadm5clnt.so.5 /usr/lib/libkadm5clnt.so /usr/lib/dietlibc/include/rpc/clnt.h /usr/lib/dietlibc/include/rpc/pmap_clnt.h /usr/lib/libkadm5clnt.a /usr/lib/libcln.so.3 /usr/lib/libcln.so.3.0.1 /usr/lib/libkadm5clnt.so.5.1 /usr/include/rpcsvc/ypclnt.h /usr/include/linux/sunrpc/clnt.h /usr/include/rpc/clnt.h /usr/include/rpc/pmap_clnt.h /dos/Program Files/Common Files/Real/Plugins/clntxres.dll /dos/windows/system32/dllcache/davclnt.dll /dos/windows/system32/dllcache/fldrclnr.dll /dos/windows/system32/dllcache/fxsclnt.exe /dos/windows/system32/dllcache/fxsclntr.dll /dos/windows/system32/dllcache/webclnt.dll /dos/windows/system32/webclnt.dll /dos/windows/system32/davclnt.dll /dos/windows/system32/fldrclnr.dll /dos/windows/Help/fxsclnt.chm /dos/windows/Help/fxsclnt.hlp /dos/Documents and Settings/Tapan/My Documents/cln-1.1.7.tar.bz2 /lib/modules/2.6.5-1.358/build/include/linux/sunrpc/clnt.h with command $locate ginac following occurs : /usr/share/doc/HTML/en/kdelibs-apidocs/kdeprint/html/management_2pluginaction_8cpp-source.html /usr/share/doc/HTML/en/kdelibs-apidocs/kdeprint/html/kdeprint_2pluginaction_8cpp-source.html /usr/share/doc/HTML/en/kdelibs-apidocs/kdeprint/html/kdeprint_2pluginaction_8h-source.html /usr/share/doc/HTML/en/kdelibs-apidocs/kdeprint/html/management_2pluginaction_8h-source.html /usr/lib/libginac-1.2.so.0.0.1 /usr/lib/libginac-1.2.so.0 Now how to fixed the bug. I am using Fedora core 2. Thanks Tapan Naskar Ph: +91 022 25604222 (Off) IUCAA 25604525 (Res) Post Bag:04 Mob: 91 022 9890430978 Ganeshkhind Fax: 91 022 335760 Pune 411007 Telex: 0145 7658 GMRT IN
Hi! On Sun, Jun 20, 2004 at 01:54:59PM +0530, Tapan wrote:
With g++ test.cpp -lcln -lginac -lm (compile command) compiling the the attached programme the following errors occurs:
No -I or -L directives? Try this: g++ test.cpp `ginac-config --cppflags --libs` Bye, Christian -- / Physics is an algorithm \/ http://www.uni-mainz.de/~bauec002/
participants (2)
-
Christian Bauer
-
Tapan