<table cellspacing='0' cellpadding='0' border='0' ><tr><td style='font: inherit;'><P>I'm trying to write a simple hello world program using APR.</P>
<P>I'm using Eclipse + Mingw + Cmake on Windows platform, but I need to</P>
<P>develop a cross platform application.</P>
<P>When compiling, the object file was created, but there're linking problem that</P>
<P>I don't know how to resolve.</P>
<P> </P>
<P>The project directory tree is:</P>
<P>c:\workspace\spok3 (here's the source file spok.cpp and the CMakeLists.txt)</P>
<P>c:\workspace\spok3\build (the cmake build dir)</P>
<P>c:\workspace\spok3\apr</P>
<P>c:\workspace\spok3\apr\include</P>
<P>c:\workspace\spok3\apr\bin (dll files like libapr-1.dll)</P>
<P>c:\workspace\spok3\apr\library (.lib files like libapr-1.lib...I don't know the difference with libapr-1.dll)</P>
<P> </P>
<P>In CMakeLists.txt when cmake finds:</P><FONT size=2>
<P align=left>FIND_PATH(APR_INCLUDE_DIR NAMES C:/workspace/spok3/apr/include/apr.h )</P>
<P align=left>MESSAGE(STATUS "Found apr.h: ${APR_INCLUDE_DIR}")</P></FONT>
<P> </P>
<P>it says: <FONT size=2>-- Found apr.h: APR_INCLUDE_DIR-NOTFOUND</FONT></P>
<P><FONT size=2></FONT> </P>
<P><FONT size=2>Why it can't find anything?</FONT></P>
<P><FONT size=2>Someone can help me using APR with CMake please?</FONT></P>
<P>In which way I can link against APR library?</P>
<P><FONT size=2>Thanks in advance,</FONT></P>
<P><FONT size=2>Carlo</P></FONT></td></tr></table><br>
<hr size=1>
Inviato da <a
href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52437/*http://it.docs.yahoo.com/mail/overview/index.html" target=_blank>Yahoo! Mail</a>.
<br>
La casella di posta intelligente.