On 05/05/13 21:12, Wai Yan Pong wrote: > Hum I see what you are saying. Well my case is a bit tricky but I think > I'm not alone. I am using Archlinux, so there is not g++ separately. And > gcc decides whether the program as a C or C++ program in the following way. > > |gcc file.C # uppercase .C (or .cpp) will process as C++ > gcc file.c # lowercase .c will process as C| > > see > http://unix.stackexchange.com/questions/34654/c-compile-in-arch-linux-with-no-g-package-in-repositories > for details. > > So the question is what can be changed so that the gcc in my machine > will interpret compile weight0.c as a C++ program... > I wonder why I didn't encounter such a program earlier... perhaps it's > the pre-release reversion that causes that problem. > Also can I use force it to use the gcc (I suppose gcc-4.7.2.p1.spkg is > the one) that comes with sage to compile? >
Yes it looks tricky. It could very well be a regression as it compile with the C compiler and not the C++ compiler on my box with gcc 4.6.3 (gentoo). That being said gcc is very permissive and one day someone may decide to cut that one off. Would you believe that 2 days ago I accidentally configured octave with CXX=gcc-4.7.1 and I almost completely compiled it before being shot down by such a problem [octave is mostly c++]. Anyway you can certainly force sage's gcc by setting SAGE_INSTALL_GCC=yes before building sage. Francois -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel?hl=en. For more options, visit https://groups.google.com/groups/opt_out.