Compiling Problems

From: Bernd Kuhlen (bkuhlen@XXXXXX)
Date: Thu Jul 12 2001 - 01:48:12 MDT


It seems to me that the "libncarg_c.a" library is not installed, but I cannot
find the reason.

Everywhere in my "make-output"-File there are lines like:

/usr/i486-suse-linux/bin/ld: cannot find -lncarg_c

as you can see, I'm using SuSE Linux 7.1

Especially i need the function "c_cssgrid" to transform from random data to a
defined grid.

Here my simple testprogramm:

#include<stdio.h>
#include<ngmath.h>
 
int main(int argc, char **argv)
{
 
   float org_latitudes[] ={48.,48.,57.,57.};
   float org_longtitudes[] = {9.,16.,9.,16.};
   float tempval[] = {10,11,12,13};
   float grid_latitudes[] = {50.,50.,55.,55.};
   float grid_longtitudes[] = {10.,15.,10.,15.};
 
   float *out;
   int ier;
 
   out =
c_cssgrid(4,org_latitudes,org_longtitudes,tempval,4,4,grid_latitudes,grid_longtitudes,
 
   return 0;
}
  
here my makefile:

testcss: testcss.cpp ngmath.h
        gcc -c -I/usr/local/ncarg-4.2.2/ngmath/src/lib testcss.cpp
        gcc -o testcss testcss.o -L/usr/local/ncarg-4.2.2/lib -lngmath -lm
  -lngmath

and here what I get:

gcc -c -I/usr/local/ncarg-4.2.2/ngmath/src/lib testcss.cpp
gcc -o testcss testcss.o -L/usr/local/ncarg-4.2.2/lib -lngmath -lm
-lngmath
testcss.o: In function `main':
testcss.o(.text+0xf1): undefined reference to `c_cssgrid(int, float *, float
*, float *, int, int, float *, float *, int *)'
collect2: ld returned 1 exit status
make: *** [testcss] Error 1

Thanks,
Bernd



This archive was generated by hypermail 2b29 : Thu Jul 12 2001 - 07:55:05 MDT