[ptx] wxwin and gcc 4.0

Daniel M. German dmgerman at uvic.ca
Thu Apr 20 09:16:22 BST 2006


Hi Pablo,

 Pablo> Daniel M. German schrieb:
 >> Well, wxwin does not seem to compile with gcc version 4.0:
 >> 
 >> [dmg at hydrogen:~/hacking/wxMac-2.6.3/osx-build] make
 >> ./bk-deps g++-4 -c -o basedll_appbase.o  -D__WXMAC__            -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE_BASE=1 -dynamic -fPIC -DPIC -DNO_GCC_PRAGMA -Ilib/wx/include/mac-ansi-release-2.6 -I../include -I/sw/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -fpascal-strings -I../src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon -O2 -fno-strict-aliasing -I/sw/include -Wall -Wundef -Wno-ctor-dtor-privacy -fno-common ../src/common/appbase.cpp
 >> g++-4: unrecognized option '-no-cpp-precomp'
 >> cc1plus: error: unrecognized command line option "-fpascal-strings"
 >> make: *** [basedll_appbase.o] Error 1
 >> 
 >> 
 >> And if I compile hugin with version 4.0 and wxwin with 3.3 then I get
 >> manging problems that result in undefined symbols (wxmac related, and
 >> these occur with another wxman application that I am using a test).
 >> 
 >> I'm going to try to install gcc-3.4 and hope for the best.

 Pablo> Hmm, building on OSX seems to be more troublesome than I thought.

 Pablo> I had hoped that it would be possible to use the supplied compiler (by
 Pablo> apple) to build the stuff.

 Pablo> However, I don't know the details, for example if libraries installed with
 Pablo> fink are compatible with the apple gcc and can be used to create universal
 Pablo> binaries.

 Pablo> What were the problems with the apple supplied compiler? was ist just the
 Pablo> boost ublas stuff, or are other packages also affected?

 Pablo> The latest CVS does not require boost ublas anymore.

The only problem I had had is boost. I hadn't had any problem
compiling other fink software in the past.

But I did get another boost error after you removed the boost ublas
dependency, see below:

-------

if g++ -DHAVE_CONFIG_H "-I." -I../../src/include -I../../src/foreign -I../../src/include -I.. -I/sw/lib/wx/include/mac-ansi-release-2.6 -I/sw/include/wx-2.6 -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA  -L/sw/lib  -I/usr/local/include -DHasPANO -pthread  -I/sw/include -I/Developer/Headers/FlatCarbon/ -MT VigCorrDialog.o -MD -MP -MF ".deps/VigCorrDialog.Tpo" -c -o VigCorrDialog.o VigCorrDialog.cpp; \
then mv -f ".deps/VigCorrDialog.Tpo" ".deps/VigCorrDialog.Po"; else rm -f ".deps/VigCorrDialog.Tpo"; exit 1; fi
g++: unrecognized option `-pthread'
In file included from ../../src/foreign/vigra/sized_int.hxx:42,
                 from ../../src/foreign/vigra/stdimage.hxx:42,
                 from ../../src/include/panoinc.h:53,
                 from VigCorrDialog.cpp:29:
../../src/foreign/vigra/metaprogramming.hxx:158: warning: use of `long double' 
   type; its size may change in a future release
../../src/foreign/vigra/metaprogramming.hxx:158: warning: (Long double usage is 
   reported only once for each file.
../../src/foreign/vigra/metaprogramming.hxx:158: warning: To disable this 
   warning, use -Wno-long-double.)
In file included from /sw/include/boost/numeric/ublas/vector.hpp:24,
                 from ../../src/include/vigra_ext/VigQuotientEstimator.h:9,
                 from VigCorrDialog.cpp:38:
/sw/include/boost/numeric/ublas/vector_expression.hpp:1924: error: due to a 
   defect in the G++ 3.2 ABI, G++ has assigned the same mangled name to two 
   different types
In file included from /sw/include/boost/numeric/ublas/matrix.hpp:23,
                 from /sw/include/boost/numeric/ublas/triangular.hpp:22,
                 from ../../src/include/vigra_ext/VigQuotientEstimator.h:12,
                 from VigCorrDialog.cpp:38:
/sw/include/boost/numeric/ublas/matrix_expression.hpp:5201: error: due to a 
   defect in the G++ 3.2 ABI, G++ has assigned the same mangled name to two 
   different types






--
Daniel M. German                  "I am like any other artist.
                                   It just so happens that
                                   what fills my mind
   Donald Coxeter ->               is shapes and numbers"
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .

 


More information about the ptx mailing list