octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #38746] Including mex.h does not work with G++


From: Sébastien Villemot
Subject: [Octave-bug-tracker] [bug #38746] Including mex.h does not work with G++ 4.8
Date: Mon, 15 Apr 2013 15:45:39 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20100101 Firefox/10.0.12 Iceweasel/10.0.12

URL:
  <http://savannah.gnu.org/bugs/?38746>

                 Summary: Including mex.h does not work with G++ 4.8
                 Project: GNU Octave
            Submitted by: svillemot
            Submitted on: lun. 15 avril 2013 15:45:37 GMT
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.4
        Operating System: GNU/Linux

    _______________________________________________________

Details:

This is Debian bug #705485
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705485)

When including mex.h from a C++ source file, and compiling with G++ 4.8, the
compilation crashes.

The root of the problem is that mex.h includes mexproto.h within an extern "C"
block. In turn, mexproto.h includes cstdlib.

Apparently, including cstdlib within an extern "C" block was working with G++
4.7, but this is no longer the case.

The fix is to include mexproto.h outside of the extern "C" block.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38746>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]