[Met_help] I got compiling error when I build MET using gcc!!!
John Halley Gotway
johnhg at rap.ucar.edu
Mon Nov 17 10:30:01 MST 2008
Xie Xin,
A few users have reported a similar error but when using the PGI compilers to compile the PB2NC tool. I'm not aware of other users experiencing the problem you're seeing.
Could you please send me a copy of the Makefile you're using as well as all of the output from "make"?
Please do the following from the top-level METv1.1 directory:
> make clean
> make >& make_met.log&
And send me a copy of "make_met.log".
Also, can you tell me what type of operating system you're running, and which version of the GNU compilers you're using:
> g++ --version
Hopefully we can get this figured out.
Thanks!
John Halley Gotway
johnhg at ucar.edu
Xie Xin wrote:
> hi,
>
> According to the manual, I have set up all the needed libs and began to
> build MET. I want to use gcc so I cp the Makefile_gnu to Makefile.
> However, I got error when I make.
>
> *** Making vx_analysis_util Library ***
>
> /usr/bin/g++ analysis_utils.cc -Wall -Wshadow -static -c -I..
> analysis_utils.cc: In function `int all_digits (const char *)':
> analysis_utils.cc:94: `isdigit' undeclared (first use this function)
> analysis_utils.cc:94: (Each undeclared identifier is reported only once
> for each function it appears in.)
> make[3]: *** [analysis_utils.o] Error 1
> make[2]: *** [vx_analysis_util_all] Error 2
> make[1]: *** [libs] Error 2
> make: *** [all] Error 2
>
> It seemed that function isdigit was not declared in the header files.
> Then I found that the declaration of isdigit() is in the ctype.h so I
> add #include "ctype.h" in anylysis_utils.cc. But I got another error
> complaining memcpy() was not declared. I wonder if there is a serious
> NOT-DECLARATION bug in your code. Would you give me some suggestion how
> this could be solved?
>
> Thank you very much!
>
> Xie Xin
>
> _______________________________________________
> Met_help mailing list
> Met_help at mailman.ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/met_help
More information about the Met_help
mailing list