Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8132807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:25:52+00:00 2026-06-06T09:25:52+00:00

There is no problem in Xcode, but in Eclipse there is unfortunately. I did

  • 0

There is no problem in Xcode, but in Eclipse there is unfortunately.

I did this in Android.mk:

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := game


LOCAL_MODULE_FILENAME := libgame

LOCAL_SRC_FILES := helloworld/main.cpp \
                   ../../Classes/AppDelegate.cpp \
                   ../../Classes/HelloWorldScene.cpp\
                   ../../Classes/GameplayLayer.cpp\
                   ../../Classes/swimmerc.cpp\
                   ../../Classes/pugixml.cpp

LOCAL_C_INCLUDES := ../../libs/cocos2dx \
../../libs/cocos2dx/platform \
../../libs/cocos2dx/include \
../../libs/CocosDenshion/include \
$(LOCAL_PATH)/../../Classes/\


LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocosdenshion_static curl_static

include $(BUILD_SHARED_LIBRARY)
$(call import-module,cocos2dx)
$(call import-module,cocos2dx/platform/third_party/android/prebuilt/libcurl)
$(call import-module,CocosDenshion/android) 

I put the curl folder in Classes. I then included it in GameplayLayer.cpp.
No errors occur if I use

CURL *curl;
CURLcode res;

But as soon as I put

   curl = curl_easy_init();

I get an error,

make: *** [obj/local/armeabi/libgame.so] Error 1

Please help, I would gladly give one of my kidneys in exchange for getting this %&#@ to work.

I’m getting:

undefined reference to `curl_easy_init'
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T09:25:53+00:00Added an answer on June 6, 2026 at 9:25 am

    I added this line in Android.mk to make it work.

    LOCAL_STATIC_LIBRARIES := curl_static_prebuilt
    

    Of course in order to connect to the internet you will also need to edit AndroidManifest.mk and add this line:

    <uses-permission android:name="android.permission.INTERNET"/> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry for the super dumb question, but is there any problem using the Android/Eclipse
what's the problem there, I have uploaded this video to server, but now its
Is there a problem with this type of implementation to wait for a batch
Consider this problem: There's a square grid defined, each tile being either passable (1)
I know there are other questions that are very similar to this, but their
Problem: I want to make iPhone OS 2.1 apps, but Xcode now always makes
There must be a simple solution to this, but after 4 hours of browsing
The XCode analyzer tells me there is a problem at line 4 — return
I've never considered this a problem, until I ran the Xcode Analyze feature. Say
There are variations of this question bouncing around SO, but none of them seem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.