<div>Hi all,</div>
<div> </div>
<div>I&#39;m recently working with cairo source code(on Linux). Here is my purpose.</div>
<div> </div>
<div>In cairo, I want to include and call some functions that was in other external libraries(e.g libabc.a) which was written in C++.</div>
<div>Since cairo is written in C, directly complie the source will definitely cause a problem.</div>
<div> </div>
<div>I have some idea about this.</div>
<div>One is to change the code in the libraries written in C++. By define exten &quot;C&quot; and doing some wrapping.</div>
<div> </div>
<div>Another idea is compile cairo with g++ and maybe extern them from C to C++.</div>
<div>I&#39;m trying this option these days. Since cairo is using automake tools, </div>
<div>I&#39;ve trying alter &quot;<a href="http://configure.ac">configure.ac</a>&quot; and &quot;Makefile.am&quot; to satisfy</div>
<div>1.Compile and linking using g++</div>
<div>2.Include my library header</div>
<div>3.Link with my library file(xxx.a)</div>
<div> </div>
<div>However,  &quot;<a href="http://configure.ac">configure.ac</a>&quot; and &quot;Makefile.am&quot; include in original cairo source is very complex and hard to understand.</div>
<div>I try to add AC_PROG_CXX  in &quot;<a href="http://configure.ac">configure.ac</a>&quot; , LDADD = xxx.a  in &quot;Makefile.am&quot; and AM_CPPFLAGS = /usr/local/include/xxx  in src/Makefile.am.</div>
<div>It seems not work at all.</div>
<div> </div>
<div> </div>
<div>Does any one have any idea about this problem? </div>
<div>I am addressing my sincere thanks to the helper. <br></div>
<div>Best Regards to you all</div>
<div> </div>
<div>Gary Gau</div>