Hey Daniel,<div><br></div><div>I checked every "cmakelists.txt", and updated accordingly. In addition, I executed this</div><div>"CREATE OR REPLACE FUNCTION shortest_path_mild_two_q(sql text, source_id integer, </div>
<div>        target_id integer, directed boolean, has_reverse_cost boolean)</div><div>        RETURNS SETOF path_result</div><div>        AS '$libdir/librouting'</div><div>        LANGUAGE 'C' IMMUTABLE STRICT;"</div>
<div>in pgadmin3 directly.</div><div><br></div><div>Right now it works.</div><div><br></div><div>Thanks,</div><div>Jinfu</div><div><br><div class="gmail_quote">On Thu, Jun 14, 2012 at 7:37 PM, Daniel Kastl <span dir="ltr"><<a href="mailto:daniel@georepublic.de" target="_blank">daniel@georepublic.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Have you looked at the "CMakeLists.txt", which you can find in pretty much every directory?<div><br></div><div>
Daniel</div><div><div><div class="h5"><br><br><div class="gmail_quote">On Thu, Jun 14, 2012 at 1:21 PM, Jinfu Leng <span dir="ltr"><<a href="mailto:logicnut@gmail.com" target="_blank">logicnut@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Jay,<div><br></div><div>Thanks very much.</div><div><div><br></div><div>You need to create a .sql file and write function definition.</div>


</div><div>I did not know how to create the .sql file. I added the definition of the function:</div>
<div><br></div><div><div>CREATE OR REPLACE FUNCTION shortest_path_mild_two_q(sql text, source_id integer, </div><div>        target_id integer, directed boolean, has_reverse_cost boolean)</div><div>        RETURNS SETOF path_result</div>



<div>        AS '$libdir/librouting'</div><div>        LANGUAGE 'C' IMMUTABLE STRICT;</div></div><div><br></div><div>to the file "rounting_core.sql".</div><div><br></div><div>Modify cmakelists accordingly.</div>



<div>Which cmakelists.txt file are you referring to? I updated the cmakelists.txt file in the folder "core/src".</div><div><br></div><div>It is not working right now.</div><span><font color="#888888"><div>

<br></div><div>Jinfu</div></font></span><div><div><div><br>
<div><br><div class="gmail_quote">On Thu, Jun 14, 2012 at 11:32 AM, Jay Mahadeokar <span dir="ltr"><<a href="mailto:jai.mahadeokar@gmail.com" target="_blank">jai.mahadeokar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<p>Hi Jinfu,<br>
 It seems that your function is not created in postgres database. You need to create a .sql file and write function definition. Modify cmakelists accordingly.<br>
 If you have already done that, and didn't work, try adding it by giving the command at sql prompt.   Check out the documentation in apsp page in pgrouting wiki for exact commands. </p>
<div class="gmail_quote"><div><div>On 14 Jun 2012 07:52, "Jinfu Leng" <<a href="mailto:logicnut@gmail.com" target="_blank">logicnut@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div>
Hey,<div><br></div><div>I am writing the code for the new algorithm. I added the name of the file to the file "CMakeLists.txt", and then the file can be compiled. In pgAdmin3, I can call the function shortest_path(), but when I tried to call my function shortest_path_mild_two_q(), I got the error message "no matched function".</div>





<div><br></div><div>My question is, besides "CMakeLists.txt", what else should I do to let the system know there is a function named shortest_path_mild_two_q().</div><div><br></div><div>Thanks,</div><div>Jinfu</div>





<br></div></div>_______________________________________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
<br></blockquote></div>
<br>_______________________________________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
<br></blockquote></div><br></div></div>
</div></div><br>_______________________________________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Georepublic UG & Georepublic Japan<br>
eMail: <a href="mailto:daniel.kastl@georepublic.de" style="color:rgb(66,99,171)" target="_blank">daniel.kastl@georepublic.de</a><br>

Web: <a href="http://georepublic.de/" style="color:rgb(66,99,171)" target="_blank">http://georepublic.de</a></span><br>
</font></span></div>
<br>_______________________________________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
<br></blockquote></div><br></div>