Re: GMT-5.1.0 Installation problems
Marcelo Banik <[email protected]>
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <CAN-U1_av6LWAH_vx94x5w5WLKsMBk7E56BiR+fb5tEAiJ9pt_w@mail.gmail.com> |
Sara,
I attached a simple test program to check if your gcc is minimally normal.
Compile with command:
gcc test.c -o test
Then run:
./test
It must return something like:
3.000000
If it works... I'm not sure what you could do.
Anyway, as far as I could understand, the math.h headers are included by
the folowing C.includecache files:
./src/CMakeFiles/supplib.dir/C.includecache
./src/CMakeFiles/testapi.dir/C.includecache
./src/CMakeFiles/testgmt5.dir/C.includecache
./src/CMakeFiles/testio.dir/C.includecache
./src/CMakeFiles/testgrdio.dir/C.includecache
./src/CMakeFiles/testgmtio.dir/C.includecache
./src/CMakeFiles/psldemo.dir/C.includecache
./src/CMakeFiles/gmt.dir/C.includecache
./src/CMakeFiles/gmtlib.dir/C.includecache
./src/CMakeFiles/pslib.dir/C.includecache
from your build directory, you could check if you get the same result with
the command:
find . -name 'C.includecache' -exec grep -l ^'math.h' {} \;
Regards,
Marcelo
On Tue, Jan 21, 2014 at 6:32 PM, Paul Wessel <[email protected]> wrote:
> The log is full of warnings like this:
>
> implicit declaration of function ‘cos’
>
> and all the other functions in math.h, e.g., fabs, exp, etc. How is that
> possible, given these are declared in math.h which we certainly include?
> What does cmake say your CFLAGS are at the end of the cmake run? Perhaps
> you had CFLAGS set to something crazy before and it no longer can find
> /usr/include ?
>
>
> -p
>
> On Jan 21, 2014, at 10:06 AM, Sara Ivonne Franco Sanchez <
> [email protected]> wrote:
>
> > Yes, I did it.
> > I attach the log.
> > I get the following error:
> > /root/gmt-5.1.0/src/mgd77/mgd77.c: In function ‘MGD77_Parse_Corrtable’:
> > /root/gmt-5.1.0/src/mgd77/mgd77.c:5626:21: error: ‘exp’ undeclared
> (first use
> > in this function)
> > /root/gmt-5.1.0/src/mgd77/mgd77.c:5626:21: note: each undeclared
> identifier is
> > reported only once for each function it appears in
> >
> > Thanks!!!
> >
> > On 01/21/2014 01:27 PM, Joaquim Luis wrote:
> >> Sara,
> >>
> >> Did you do
> >>
> >> make
> >> make install
> >>
> >> ?
> >> Where there any suspicious warnings/errors at compiling step?
> >>
> >>> Hello Marcelo!
> >>> I made the cmake log file. I attach it to this email.
> >>> I hope you can help me!!! I almost give up... :)
> >>> Thanks you!!
> >>> Sara
> >>>
> >>> To unsubscribe, send the message "signoff gmt-help" to
> [email protected]
> >>
> >> To unsubscribe, send the message "signoff gmt-help" to
> [email protected]
> >
> >
> > To unsubscribe, send the message "signoff gmt-help" to
> [email protected]
> > <make.log>
>
> To unsubscribe, send the message "signoff gmt-help" to
> [email protected]
>
To unsubscribe, send the message "signoff gmt-help" to [email protected]
test.c
(text/x-csrc, 96 B)
#include <stdio.h>
#include <math.h>
int main ()
{
float a=fabs(-3.0);
printf("%f\n",a);
}