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

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

[Octave-bug-tracker] [bug #41027] config.h is too generic


From: Rik
Subject: [Octave-bug-tracker] [bug #41027] config.h is too generic
Date: Wed, 10 Feb 2016 22:49:13 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #27, bug #41027 (project octave):

Just built and installed a local version of the development branch.  When I
try to build a .oct file using mkoctfile I get warnings about re-definitions
of macros.


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   


Apparently there is some overlap between octave-config.h and oct-conf-post.h


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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