<div>Hi all,</div>
<div> </div>
<div>I'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 "C" 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'm trying this option these days. Since cairo is using automake tools, </div>
<div>I've trying alter "<a href="http://configure.ac">configure.ac</a>" and "Makefile.am" 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, "<a href="http://configure.ac">configure.ac</a>" and "Makefile.am" include in original cairo source is very complex and hard to understand.</div>
<div>I try to add AC_PROG_CXX in "<a href="http://configure.ac">configure.ac</a>" , LDADD = xxx.a in "Makefile.am" 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>