{"action":"created","issue":{"url":"https://api.github.com/repos/pgRouting/osm2pgrouting/issues/74","labels_url":"https://api.github.com/repos/pgRouting/osm2pgrouting/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/pgRouting/osm2pgrouting/issues/74/comments","events_url":"https://api.github.com/repos/pgRouting/osm2pgrouting/issues/74/events","html_url":"https://github.com/pgRouting/osm2pgrouting/issues/74","id":95630065,"number":74,"title":"libpq-fe.h problem in stack exchange","user":{"login":"cvvergara","id":5035290,"avatar_url":"https://avatars.githubusercontent.com/u/5035290?v=3","gravatar_id":"","url":"https://api.github.com/users/cvvergara","html_url":"https://github.com/cvvergara","followers_url":"https://api.github.com/users/cvvergara/followers","following_url":"https://api.github.com/users/cvvergara/following{/other_user}","gists_url":"https://api.github.com/users/cvvergara/gists{/gist_id}","starred_url":"https://api.github.com/users/cvvergara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvvergara/subscriptions","organizations_url":"https://api.github.com/users/cvvergara/orgs","repos_url":"https://api.github.com/users/cvvergara/repos","events_url":"https://api.github.com/users/cvvergara/events{/privacy}","received_events_url":"https://api.github.com/users/cvvergara/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-17T10:23:56Z","updated_at":"2015-07-17T12:17:26Z","closed_at":null,"body":"Joseph post\r\n```\r\nI'm trying to install osm2pgrouting. I have installed all the required packages and I also have changed the #include \"libpq-fe.h\" to #include postgresql/libpq-fe.h\" in the src/Export2DB.h. However when I'm trying to do \"make\", I get this error:\r\n\r\nLinking CXX executable osm2pgrouting\r\nCMakeFiles/osm2pgrouting.dir/src/Export2DB.cpp.o: In function `Export2DB::~Export2DB()':\r\nExport2DB.cpp:(.text+0x2ea): undefined reference to `PQfinish'\r\nCMakeFiles/osm2pgrouting.dir/src/Export2DB.cpp.o: In function `Export2DB::connect()':\r\nExport2DB.cpp:(.text+0x38c): undefined reference to `PQconnectdb'\r\nExport2DB.cpp:(.text+0x3a2): undefined reference to `PQstatus'\r\nCMakeFiles/osm2pgrouting.dir/src/Export2DB.cpp.o: In function `Export2DB::createTables()':\r\nExport2DB.cpp:(.text+0x46f): undefined reference to `PQexec'\r\nExport2DB.cpp:(.text+0x47f): undefined reference to `PQresultStatus'\r\nExport2DB.cpp:(.text+0x49b): undefined reference to `PQerrorMessage'\r\nExport2DB.cpp:(.text+0x4d1): undefined reference to `PQclear'\r\nExport2DB.cpp:(.text+0x5f2): undefined reference to `PQexec'\r\nExport2DB.cpp:(.text+0x602): undefined reference to `PQresultStatus'\r\nExport2DB.cpp:(.text+0x618): undefined reference to `PQresultStatus'\r\nExport2DB.cpp:(.text+0x636): undefined reference to `PQerrorMessage'\r\nExport2DB.cpp:(.text+0x66c): undefined reference to `PQclear'\r\nExport2DB.cpp:(.text+0x6fd): undefined reference to `PQexec'\r\nExport2DB.cpp:(.text+0x70d): undefined reference to `PQresultStatus'\r\nExport2DB.cpp:(.text+0x729): undefined reference to `PQerrorMessage'\r\nExport2DB.cpp:(.text+0x75f): undefined reference to `PQclear'\r\nExport2DB.cpp:(.text+0x7e7): undefined reference to `PQexec'\r\nExport2DB.cpp:(.text+0x7f7): undefined reference to `PQresultStatus'\r\nExport2DB.cpp:(.text+0x813): undefined reference to `PQerrorMessage'\r\nExport2DB.cpp:(.text+0x849): undefined reference to `PQclear'\r\nExport2DB.cpp:(.text+0x8cb): undefined reference to `PQexec'\r\nExport2DB.cpp:(.text+0x8db): undefined reference to `PQresultStatus'\r\nExport2DB.cpp:(.text+0x8f7): undefined reference to `PQerrorMessage'\r\nExport2DB.cpp:(.text+0x92d): undefined reference to `PQclear'\r\nExport2DB.cpp:(.text+0x9af): undefined reference to `PQexec'\r\nExport2DB.cpp:(.text+0x9bf): undefined reference to `PQresultStatus'\r\nExport2DB.cpp:(.text+0x9db): undefined reference to `PQerrorMessage'\r\nExport2DB.cpp:(.text+0xa11): undefined reference to `PQclear'\r\nExport2DB.cpp:(.text+0xa93): undefined reference to `PQexec'\r\nExport2DB.cpp:(.text+0xaa3): undefined reference to `PQresultStatus'\r\n...\r\n```"},"comment":{"url":"https://api.github.com/repos/pgRouting/osm2pgrouting/issues/comments/122258676","html_url":"https://github.com/pgRouting/osm2pgrouting/issues/74#issuecomment-122258676","issue_url":"https://api.github.com/repos/pgRouting/osm2pgrouting/issues/74","id":122258676,"user":{"login":"sanak","id":629923,"avatar_url":"https://avatars.githubusercontent.com/u/629923?v=3","gravatar_id":"","url":"https://api.github.com/users/sanak","html_url":"https://github.com/sanak","followers_url":"https://api.github.com/users/sanak/followers","following_url":"https://api.github.com/users/sanak/following{/other_user}","gists_url":"https://api.github.com/users/sanak/gists{/gist_id}","starred_url":"https://api.github.com/users/sanak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanak/subscriptions","organizations_url":"https://api.github.com/users/sanak/orgs","repos_url":"https://api.github.com/users/sanak/repos","events_url":"https://api.github.com/users/sanak/events{/privacy}","received_events_url":"https://api.github.com/users/sanak/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T12:17:26Z","updated_at":"2015-07-17T12:17:26Z","body":"@cvvergara \r\nHmm...\r\nOn my Ubuntu 14.04 VirtualBox environment, there was no error on both of `master` and `develop` branch. (The following is `develop` branch result.)\r\n![develop](https://cloud.githubusercontent.com/assets/629923/8746929/1e8fe382-2cc9-11e5-8620-7a688e5cdf9f.png)\r\n\r\nBy the way, I couldn't understand why vagvaf did the following.\r\n\r\n> I also have changed the #include \"libpq-fe.h\" to #include postgresql/libpq-fe.h\" in the src/Export2DB.h.\r\n\r\nIn my understanding, above changing include path is not necessary."}}