Opened 10 years ago

Last modified 8 years ago

#45616 closed defect

Compile error with g++ 4.8.2 — at Version 1

Reported by: gsteele13@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.2
Keywords: Cc: larryv@…
Port: boost

Description (last modified by larryv (Lawrence Velázquez))

I recently reinstalled mac OS on my macbook, and in doing so, have switched from a 10.6 fink system to a 10.9 macports system.

I was recently trying to compile some software (code available here http://nsweb.tn.tudelft.nl/~gsteele/spyview/) using the macports environment (primarily linking to librarires fltk and boost).

The code compiled fine on my old 10.6 fink installation, but I am now getting the following error in 10.9 with macports:

In file included from /opt/local/include/boost/limits.hpp:19:0,
                 from /opt/local/include/boost/integer_fwd.hpp:16,
                 from /opt/local/include/boost/integer.hpp:18,
                 from /opt/local/include/boost/archive/basic_binary_iprimitive.hpp:49,
                 from /opt/local/include/boost/archive/binary_iarchive_impl.hpp:21,
                 from /opt/local/include/boost/archive/binary_iarchive.hpp:20,
                 from myboost.h:5,
                 from ImagePrinter.H:9,
                 from ImageWindow.H:19,
                 from spyview_ui.h:6,
                 from spyview_ui.C:3:
/opt/local/include/gcc48/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>

I have also tried the apple-gcc42 compiler, and with this compiler, the code compiles fine, but fails at linking (I guess probably the gcc-4.8 c++ libraries are not linkable with gcc-4.2?).

Has anyone else had this problem?

Thanks,
Gary

Change History (1)

comment:1 Changed 10 years ago by larryv (Lawrence Velázquez)

Cc: larryv@… added
Description: modified (diff)

Could you provide a test case?

Note: See TracTickets for help on using tickets.