[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: octave 3.6.2 build error: invalid preprocessing directive #!
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: octave 3.6.2 build error: invalid preprocessing directive #! |
Date: |
Thu, 16 Aug 2012 12:32:21 -0400 |
On 16 August 2012 12:06, Richard Crozier <address@hidden> wrote:
> On 16/08/2012 16:51, Jordi Gutiérrez Hermoso wrote:
>>
>> On 16 August 2012 11:35, Richard Crozier<address@hidden> wrote:
>>>
>>> I'm trying to build the octave 3.6.2 sources but compilation has stopped
>>> with the output below. Could anyone suggest a fix?
>>>
>>> In file included from oct-rand.cc:27:
>>> /usr/bin/map:1:2: error: invalid preprocessing directive #!
>>
>> What is this "/usr/bin/map" thing?
>>
>> Looks like your build is somehow trying to compile an m-file or Perl
>> file as if it were a C++ source file. How did this happen? How did you
>> start the build?
>
> well I just downloaded the sources and extracted them to the directory shown
> at the bottom of the output, I then ran ./configure and make as normal.
>
> There are some unusual circumstances which may or may not be
> related.
I think they are... I think your environment might be very strange.
For some reason, g++ has decided that /usr/bin is a good place to go
looking for header files instead of /usr/include.
Can you please show me the output of the following commands?
echo '#include <map>' > foo.c++
cpp foo.c++
echo $CFLAGS
echo $CXXFLAGS
- Jordi G. H.
- octave 3.6.2 build error: invalid preprocessing directive #!, Richard Crozier, 2012/08/16
- Re: octave 3.6.2 build error: invalid preprocessing directive #!, Jordi Gutiérrez Hermoso, 2012/08/16
- Re: octave 3.6.2 build error: invalid preprocessing directive #!, Richard Crozier, 2012/08/16
- Re: octave 3.6.2 build error: invalid preprocessing directive #!,
Jordi Gutiérrez Hermoso <=
- Re: octave 3.6.2 build error: invalid preprocessing directive #!, Richard, 2012/08/16
- Re: octave 3.6.2 build error: invalid preprocessing directive #!, Jordi Gutiérrez Hermoso, 2012/08/16
- Re: octave 3.6.2 build error: invalid preprocessing directive #!, Mike Miller, 2012/08/16
- Re: octave 3.6.2 build error: invalid preprocessing directive #!, Richard Crozier, 2012/08/17
- Re: octave 3.6.2 build error: invalid preprocessing directive #!, Sergei Steshenko, 2012/08/17
- Re: octave 3.6.2 build error: invalid preprocessing directive #!, Richard Crozier, 2012/08/17
- Re: octave 3.6.2 build error: invalid preprocessing directive #!, Sergei Steshenko, 2012/08/17
- Re: octave 3.6.2 build error: invalid preprocessing directive #!, Martin Helm, 2012/08/17
- Re: octave 3.6.2 build error: invalid preprocessing directive #!, Richard Crozier, 2012/08/17