Pierre Denis wrote:

  Hi,

I have not been able to install the latest Wx from CPAN on a Kubuntu
install. Alien-wxWidgets-0.33 required to set CC and CXX to the gcc path.
WxWidget 2.8.4.0 is installed as an Ubuntu package. <http://2.8.4.0/>

  I think the problem is that you have set CXX to point to gcc
instead of g++.  Most of the time this is not a problem because gcc
tries to autodetect the language from file extension, but wxPerl
uses .c for all files and relies on the compiler to be g++.

Any suggestion?


[EMAIL PROTECTED]:~/.cpan/build/Wx-0.81$ make
make[1]: Entering directory `/home/pierre/.cpan/build/Wx-0.81/ext'
make[2]: Entering directory `/home/pierre/.cpan/build/Wx-0.81/ext/richtext'
/usr/bin/gcc -c  -I. -I../..
-I/usr/lib/wx/include/gtk2-unicode-release-2.8-I/usr/include/wx-
2.8  -pthread   -O2   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC
"-I/usr/lib/perl/5.8/CORE"  -DWXPL_EXT -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D__WXGTK__   RichText.c

  I think the problem is the compiler is trying to compile the sources
as they were C and choking on C++ constructs.

CXX=/usr/bin/gcc

  I think changing that to /usr/bin/g++ should fix the problem.

Mattia

Reply via email to