Re: Compilation Problem Fedora Core 6

From: Orion Poplawski <orion_at_nyahnyahspammersnyahnyah>
Date: Fri, 02 Nov 2007 10:08:30 -0600

Michael Irl Zimmerman wrote:
> Hello all,
>
> I am trying to learn how to use NCARG in a C code. I compiled
> NCARG-4.4.2 from source and copied the libraries and header files into
> /usr/lib and /usr/include/ncarg, respectively.
>
> Now I am adding lines to my code step by step to see if I can work out
> the bugs. Here is my c code that compiles and runs:
>
> #include <ncarg/gks.h>
> int main(void)
> {
> gopen_gks(0,0);
> // gopen_ws(1,NULL,1);
> return 0;
> }
>
> The following modification does not compile:
>
> #include <ncarg/gks.h>
>
> int main(void)
> {
> gopen_gks(0,0);
> gopen_ws(1,NULL,1);
> return 0;
> }
>
> My makefile looks like this:
>
> ncarg: ncarg.c
> gcc -o ncarg ncarg.c /usr/lib/libngmath.a /usr/lib/libncarg_c.a
> /usr/lib/libncarg_gks.a /usr/lib/libncarg.a
> /usr/lib/gcc/i386-redhat-linux/3.4.6/libg2c.a
>

Any reason not to use ncarg/ncarg-devel from Fedora Extras? Any reason
not to use the "ncargcc" to compile?

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion_at_cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com
_______________________________________________
ncarg-talk mailing list
ncarg-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Fri Nov 02 2007 - 10:08:30 MDT

This archive was generated by hypermail 2.2.0 : Wed Jan 23 2008 - 14:22:51 MST