Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined reference to 'curl_easy_init' #55

Open
jaynag opened this issue Aug 29, 2018 · 1 comment
Open

undefined reference to 'curl_easy_init' #55

jaynag opened this issue Aug 29, 2018 · 1 comment

Comments

@jaynag
Copy link

jaynag commented Aug 29, 2018

I am using your build scripts and sources to build static .a libCurl libraries and I want to use them in an android project that has C++ implementations that call on libCurl APIs. I'm getting a bunch of undefined reference to curl calls such as the following:

error: undefined reference to 'curl_easy_init'
/Users/jay.nagar/dev/git/unity_sdk_whareapi/Whare_Native_Unity/src/Whare/Common/WhareWebRequest.cpp:45: error: undefined reference to 'curl_easy_setopt'
/Users/jay.nagar/dev/git/unity_sdk_whareapi/Whare_Native_Unity/src/Whare/Common/WhareWebRequest.cpp:46: error: undefined reference to 'curl_easy_setopt'
/Users/jay.nagar/dev/git/unity_sdk_whareapi/Whare_Native_Unity/src/Whare/Common/WhareWebRequest.cpp:48: error: undefined reference to 'curl_easy_setopt'
/Users/jay.nagar/dev/git/unity_sdk_whareapi/Whare_Native_Unity/src/Whare/Common/WhareWebRequest.cpp:49: error: undefined reference to 'curl_slist_append'
/Users/jay.nagar/dev/git/unity_sdk_whareapi/Whare_Native_Unity/src/Whare/Common/WhareWebRequest.cpp:50: error: undefined reference to 'curl_slist_append'
/Users/jay.nagar/dev/git/unity_sdk_whareapi/Whare_Native_Unity/src/Whare/Common/WhareWebRequest.cpp:51: error: undefined reference to 'curl_easy_setopt'
/Users/jay.nagar/dev/git/unity_sdk_whareapi/Whare_Native_Unity/src/Whare/Common/WhareWebRequest.cpp:53: error: undefined reference to 'curl_easy_perform'
/Users/jay.nagar/dev/git/unity_sdk_whareapi/Whare_Native_Unity/src/Whare/Common/WhareWebRequest.cpp:54: error: undefined reference to 'curl_easy_getinfo'
/Users/jay.nagar/dev/git/unity_sdk_whareapi/Whare_Native_Unity/src/Whare/Common/WhareWebRequest.cpp:64: error: undefined reference to 'curl_easy_init'
/Users/jay.nagar/dev/git/unity_sdk_whareapi/Whare_Native_Unity/src/Whare/Common/WhareWebRequest.cpp:75: error: undefined reference to 'curl_slist_append'
/Users/jay.nagar/dev/git/unity_sdk_whareapi/Whare_Native_Unity/src/Whare/Common/WhareWebRequest.cpp:81: error: undefined reference to 'curl_easy_perform'

Any idea what might be going wrong? Do you know what should I add to the cmake to link the static libraries with my CPP classes?

@bonetoy
Copy link

bonetoy commented Feb 26, 2019

#31
it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants