ncl api library

From: linjun zou <zoulinjun861117_at_nyahnyahspammersnyahnyah>
Date: Sun Sep 05 2010 - 08:20:09 MDT

Hi, NCL group,

       I am learning to use NCL API in my C program, and use a simple
example to have a try. The reference web page is
http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclApi.shtml
But when I compile the C program,I got many errors. I have appended
"include" option and "library" option as the example introducion describes.
The command is
 "gcc ncl.c -o ncl -I /home/zouheng/mysoftware/include/
-L/home/zouheng/mysoftware/lib -lnclapi",
and I am sure that the header file and library file is in the appropriate
location. The result is as follows:

/home/zouheng/mysoftware/lib/libnclapi.a(NclAtt.o): In function
`AttAddFunction':
NclAtt.c:(.text+0x474): undefined reference to `NrmStringToQuark'
NclAtt.c:(.text+0x53d): undefined reference to `NhlPError'
NclAtt.c:(.text+0x557): undefined reference to `NrmStringToQuark'
NclAtt.c:(.text+0x5c2): undefined reference to `NrmStringToQuark'
NclAtt.c:(.text+0x636): undefined reference to `_NhlCBCallCallbacks'
NclAtt.c:(.text+0x793): undefined reference to `NhlPError'
NclAtt.c:(.text+0x7e4): undefined reference to `NhlPError'
NclAtt.c:(.text+0x83b): undefined reference to `_NhlCBDelete'
NclAtt.c:(.text+0x902): undefined reference to `_NhlCBDelete'
NclAtt.c:(.text+0x976): undefined reference to `NhlPError'
/home/zouheng/mysoftware/lib/libnclapi.a(NclAtt.o): In function
`AttDelParent':
NclAtt.c:(.text+0xd9f): undefined reference to `NhlPError'
/home/zouheng/mysoftware/lib/libnclapi.a(NclAtt.o): In function
`AttDelFunction':
NclAtt.c:(.text+0xe43): undefined reference to `NrmStringToQuark'
NclAtt.c:(.text+0xea1): undefined reference to `NrmStringToQuark'
NclAtt.c:(.text+0xede): undefined reference to `_NhlCBCallCallbacks'
NclAtt.c:(.text+0xee9): undefined reference to `NrmStringToQuark'

It seams that the error is occurred in the library "libnclapi.a". But I have
tried to use a new libnclapi.a
to replace the old one,and it doesn't work. I don't know how to solve this
problem,can you tell me what the
reason is and give me some advice.
Thanks a lot and best regards!

 linjun

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Sep 5 07:20:16 2010

This archive was generated by hypermail 2.1.8 : Thu Sep 16 2010 - 11:05:25 MDT