<div dir="ltr">I have already added VoronoiTest.cpp in tests/unit/Makefile.am , and run autogen and configure. Still i am facing the same problem.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 July 2013 01:30, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, Jul 11, 2013 at 12:59:05AM +0530, vishal tiwari wrote:<br>
> I was making test case for VoronoiDiagramBuilder [1] , but got this<br>
> following exception:<br>
>    group: geos::triangulate::Voronoi, test: test<1><br>
>    problem: unexpected exception<br>
>    exception typeid: N4geos2io14ParseExceptionE<br>
>    message: "ParseException: Expected number but encountered ','"<br>
><br>
> Is it not able to parse the string data that i have passed? Or the error in<br>
> the implementation of VoronoiDiagram? If its not in the VoronoiDiagram<br>
> code, then how do i fix it?<br>
</div>> [1]<br>
> <a href="https://github.com/vishaltiwari/libgeos/blob/svn-trunk/tests/unit/triangulate/VoronoiTest.cpp" target="_blank">https://github.com/vishaltiwari/libgeos/blob/svn-trunk/tests/unit/triangulate/VoronoiTest.cpp</a><br>

<br>
It is unable to parse the string data you have passed.<br>
Indeed you're using a comma between X and Y ordinate values of each point<br>
in the MULTIPOINT geometry.<br>
<div class="im"><br>
> Also, i was trying to use the C++ wrapper, directly in order to test my<br>
> code, in some "file.cpp", and after including the necessary header files, i<br>
> am getting errors like:<br>
><br>
> - mytest.cpp:(.text+0xf): undefined reference to<br>
> `geos::io::WKTReader::WKTReader()'<br>
><br>
> - mytest.cpp:(.text+0x58): undefined reference to<br>
> `geos::io::WKTReader::read(std::basic_string<char, std::char_traits<char>,<br>
> std::allocator<char> > const&)'<br>
><br>
> I think this might be some linkage problem or something like that. How do i<br>
> directly use the header files that are defined.<br>
<br>
</div>You need to add "VoronoiTest.cpp" to tests/unit/Makefile.am<br>
then run ./autogen.sh from the top-level dir and ./configure again.<br>
Then you build with:<br>
<br>
  cd tests/unit<br>
  make geos_unit<br>
<br>
--strk;<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Vishal Tiwari<div>Undergraduate</div><div>Computer Science and Engineering</div><div>Lab for Spatial Informatics</div><div>IIIT-Hyderabad</div></div>

</div>