Closed Philip-Wu closed 7 years ago
Typing make gives the following error building on CentOs7
[100%] Linking CXX executable madeline2 CMakeFiles/madeline2.dir/Network.cpp.o: In function Network::getNetworkFile(char const*)': Network.cpp:(.text+0x14a): undefined reference tocurl_global_init' Network.cpp:(.text+0x14f): undefined reference to curl_easy_init' Network.cpp:(.text+0x175): undefined reference tocurl_easy_setopt' Network.cpp:(.text+0x194): undefined reference to curl_easy_setopt' Network.cpp:(.text+0x1b3): undefined reference tocurl_easy_setopt' Network.cpp:(.text+0x1d1): undefined reference to curl_easy_setopt' Network.cpp:(.text+0x1f7): undefined reference tocurl_easy_perform' Network.cpp:(.text+0x207): undefined reference to `curl_easy_cleanup' collect2: error: ld returned 1 exit status make[2]: [src/madeline2] Error 1 make[1]: [src/CMakeFiles/madeline2.dir/all] Error 2 make: *** [all] Error 2
Network::getNetworkFile(char const*)': Network.cpp:(.text+0x14a): undefined reference to
curl_easy_init' Network.cpp:(.text+0x175): undefined reference to
curl_easy_setopt' Network.cpp:(.text+0x1b3): undefined reference to
curl_easy_setopt' Network.cpp:(.text+0x1f7): undefined reference to
Nevermind got it to work by deleting the CMakeCache.txt file
Typing make gives the following error building on CentOs7
[100%] Linking CXX executable madeline2 CMakeFiles/madeline2.dir/Network.cpp.o: In function
Network::getNetworkFile(char const*)': Network.cpp:(.text+0x14a): undefined reference to
curl_global_init' Network.cpp:(.text+0x14f): undefined reference tocurl_easy_init' Network.cpp:(.text+0x175): undefined reference to
curl_easy_setopt' Network.cpp:(.text+0x194): undefined reference tocurl_easy_setopt' Network.cpp:(.text+0x1b3): undefined reference to
curl_easy_setopt' Network.cpp:(.text+0x1d1): undefined reference tocurl_easy_setopt' Network.cpp:(.text+0x1f7): undefined reference to
curl_easy_perform' Network.cpp:(.text+0x207): undefined reference to `curl_easy_cleanup' collect2: error: ld returned 1 exit status make[2]: [src/madeline2] Error 1 make[1]: [src/CMakeFiles/madeline2.dir/all] Error 2 make: *** [all] Error 2