From: Mattia B. <mb...@ds...> - 2002-04-17 16:44:00
|
> Has any one been succesful with building wxPerl on SGI? I get hundreds > of compilation errors: > > CC -c -I../.. -I/usr/local/lib/wx/include/gtk-2.2 -I/usr/local/include > -I. -O3 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" > -I/usr/freeware/lib/perl5/5.6.1/irix-n32/CORE -DWXPL_EXT > -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_REENTRANT Grid.c > cc-1367 CC: ERROR File = ../../cpp/helpers.h, Line = 272 > A pointer to an incomplete class type is not allowed. > > SvREFCNT_inc( m_self ); > ^ > > cc-1367 CC: ERROR File = Grid.c, Line = 184 > A pointer to an incomplete class type is not allowed. > > bool show = (int)SvIV(ST(1)); Some questions: * Is CC it the same compiler that was used for wxGTK ( it should )? * Is it a C or C++ compiler ( or both )? * If it is both, and uses the .c or .cpp ( or .cxx, or whatever ) to discriminate between C and C++, is there a way to force it to compile a .c file as C++? * if you do ( from the top level directory ) $ make Wx.c $ cp Wx.c Wx.cpp ( or .cxx or .cc ... ) $ make Wx.o CC ..... Wx.c ^C # stop it just after it outputs the command $ CC .... Wx.cpp # the line compiling the file with Wx.c => Wx.cpp/.cxx/.cc ... does it compile or not? Regards Mattia |