Hi, I'm wondering how to specify OSRM_PROJECT_DIR? When I set it up in my compiler command line on Ubuntu like following: *c++ -std=c++14 -DOSRM_PROJECT_DIR="/home/hbss/Hui/GSEfarm_prettified" -L /opt/oracle/instantclient_12_2 -I /opt/oracle/instantclient_12_2/sdk/include -I /home/hbss/osrm/osrm-backend/include -I /home/hbss/osrm/osrm-backend/build/include -I /home/hbss/Hui/GSEfarm_prettified routed.cpp -o osrm-routed -lboost_system -lpthread -lrt -locci -lnnz12 -lclntsh* I get following errors:
*routed.cpp: In function ‘std::istream& osrm::engine::operator>>(std::istream&, osrm::engine::EngineConfig::Algorithm&)’:routed.cpp:95:41: error: expected primary-expression before ‘(’ token throw util::RuntimeError( token, ErrorCode::UnknownAlgorithm, SOURCE_REF ); ^<command-line>:0:18: error: expected primary-expression before ‘/’ token/home/hbss/osrm/osrm-backend/include/util/exception_utils.hpp:8:64: note: in expansion of macro ‘OSRM_PROJECT_DIR’ #define PROJECT_RELATIVE_PATH_(x) std::string(x).substr(strlen(OSRM_PROJECT_DIR) + 1) ^/home/hbss/osrm/osrm-backend/include/util/exception_utils.hpp:10:27: note: in expansion of macro ‘PROJECT_RELATIVE_PATH_’ #define OSRM_SOURCE_FILE_ PROJECT_RELATIVE_PATH_(__FILE__)* Please let me know how to fix my issue. Thank you very much! ______ Harry
_______________________________________________ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk