[cairo] compilation error related to cairo libs

Lijun Diao ljdiao at gmail.com
Tue Oct 1 08:22:17 PDT 2013

Hi, all:

It is the second time I am sending the e-mail. I am not sure the first one was sent successfully since I am new register. My questions is:

I am compiling to build an executable and got the error messages as:

/opt/ncarg/lib/libncarg_gks.a(cro.o): In function `GetCROClipping':
cro.c:(.text+0x12c3): undefined reference to `cairo_clip_extents'
/opt/ncarg/lib/libncarg_gks.a(cro.o): In function `CROpict_init':
cro.c:(.text+0x13cc): undefined reference to `cairo_clip_extents'
/opt/ncarg/lib/libncarg_gks.a(cro.o): In function `cro_OpenWorkstation':
cro.c:(.text+0x4192): undefined reference to `cairo_ps_surface_set_eps'
/opt/ncarg/lib/libncarg_gks.a(cro.o): In function `cro_Cellarray':
cro.c:(.text+0x4a0a): undefined reference to `cairo_pattern_get_rgba'
collect2: ld returned 1 exit status”

I guess it is related to the cairo libs installed on our machine.  Either I need the development version of cairo, and I may only have the run-time version of cairo. or, maybe I just have an older version of cairo as suggested by th ncarg lib helpdesk. 

I used the ‘locate libcairo’ and got the result:


Can anybody confirm my problem and point to the right cairo libraries?


Lijun Diao
ldiao at uh.edu
Research Assistant
Department of Earth & Atmospheric Sciences
University of Houston
4800 Calhoun RD., Bldg. S&R1-312
Houston, TX 77204-5007
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20131001/5a1642d6/attachment.html>

More information about the cairo mailing list