[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47128] Overlapping macro definitions in octav
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #47128] Overlapping macro definitions in octave-config.h and oct-conf-post.h |
Date: |
Sat, 13 Feb 2016 01:22:06 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
URL:
<http://savannah.gnu.org/bugs/?47128>
Summary: Overlapping macro definitions in octave-config.h and
oct-conf-post.h
Project: GNU Octave
Submitted by: rik5
Submitted on: Fri 12 Feb 2016 05:22:05 PM PST
Category: Configuration and Build System
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Regression
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
I compiled a recent tip (21253:a66a737913b5) and installed locally. When I
try to build a .oct file (examples/code/helloworld.cc) I get warnings about
re-definition of macros.
This is caused by overlap between the new octave-config.h and oct-conf-post.h
which is included in config.h.
mkoctfile -v helloworld.cc
g++ -c -fPIC -I/home/rik/local/include/octave-4.1.0+/octave/..
-I/home/rik/local/include/octave-4.1.0+/octave -I/home/rik/local/include
-pthread -fopenmp -O2 -pipe helloworld.cc -o helloworld.o
In file included from
/home/rik/local/include/octave-4.1.0+/octave/config.h:3554:0,
from
/home/rik/local/include/octave-4.1.0+/octave/../octave/oct.h:33,
from helloworld.cc:1:
/home/rik/local/include/octave-4.1.0+/octave/oct-conf-post.h:113:0: warning:
"OCTAVE_INT_USE_LONG_DOUBLE" redefined
# define OCTAVE_INT_USE_LONG_DOUBLE
^
In file included from
/home/rik/local/include/octave-4.1.0+/octave/../octave/oct.h:26:0,
from helloworld.cc:1:
/home/rik/local/include/octave-4.1.0+/octave/../octave/octave-config.h:106:0:
note: this is the location of the previous definition
#define OCTAVE_INT_USE_LONG_DOUBLE 1
^
In file included from
/home/rik/local/include/octave-4.1.0+/octave/config.h:3554:0,
from
/home/rik/local/include/octave-4.1.0+/octave/../octave/oct.h:33,
from helloworld.cc:1:
/home/rik/local/include/octave-4.1.0+/octave/oct-conf-post.h:138:0: warning:
"OCTAVE_API" redefined
# define OCTAVE_API OCTAVE_IMPORT
^
In file included from
/home/rik/local/include/octave-4.1.0+/octave/../octave/oct.h:26:0,
from helloworld.cc:1:
/home/rik/local/include/octave-4.1.0+/octave/../octave/octave-config.h:87:0:
note: this is the location of the previous definition
# define OCTAVE_API
^
In file included from
/home/rik/local/include/octave-4.1.0+/octave/config.h:3554:0,
from
/home/rik/local/include/octave-4.1.0+/octave/../octave/oct.h:33,
from helloworld.cc:1:
/home/rik/local/include/octave-4.1.0+/octave/oct-conf-post.h:145:0: warning:
"OCTINTERP_API" redefined
# define OCTINTERP_API OCTAVE_IMPORT
^
In file included from
/home/rik/local/include/octave-4.1.0+/octave/../octave/oct.h:26:0,
from helloworld.cc:1:
/home/rik/local/include/octave-4.1.0+/octave/../octave/octave-config.h:88:0:
note: this is the location of the previous definition
# define OCTINTERP_API
^
g++ -I/home/rik/local/include/octave-4.1.0+/octave/..
-I/home/rik/local/include/octave-4.1.0+/octave -I/home/rik/local/include
-pthread -fopenmp -O2 -pipe -shared -Wl,-Bsymbolic -o helloworld.oct
helloworld.o -L/home/rik/local/lib/octave/4.1.0+ -L/home/rik/local/lib
-loctinterp -loctave
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47128>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #47128] Overlapping macro definitions in octave-config.h and oct-conf-post.h,
Rik <=