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”.
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().
Hi Jinfu,
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.
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.
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”.
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().
Hi Jinfu,
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.
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.
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”.
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().
Hi Jinfu,
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.
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.
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”.
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().
I checked every “cmakelists.txt”, and updated accordingly. In addition, I executed this
“CREATE OR REPLACE FUNCTION shortest_path_mild_two_q(sql text, source_id integer,
target_id integer, directed boolean, has_reverse_cost boolean)
RETURNS SETOF path_result
AS ‘$libdir/librouting’
LANGUAGE ‘C’ IMMUTABLE STRICT;”
in pgadmin3 directly.
Hi Jinfu,
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.
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.
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”.
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().