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

  • Home
  • SEARCH
  • 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 7642517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:12:36+00:00 2026-05-31T09:12:36+00:00

I have created an sample shared library, that uses libcurl. Here is the corresponding

  • 0

I have created an sample shared library, that uses libcurl. Here is the corresponding Makefile to create shared library:

CC= arm-none-linux-gnueabi-gcc
CPPFLAGS= -I/home/yuvi/development/libcurl/curl-7.24.0/build_arm/include -Wall -g 
LDFLAGS= -L/home/yuvi/development/libcurl/curl-7.24.0/build_arm/lib \
    -l:libcurl.a -l:libssh2.a -l:libssl.a -l:libcrypto.a  \
    -L/home/yuvi/development/CD/VAR-SOM-OM35_VAR-SOM-OM37_VAR-SOM-AM35/Software/Linux/host_tools/linux/arm-2009q3/arm-none-linux-gnueabi/libc/lib -lrt 

all: resume.o libresume.so

resume.o:
    $(CC) $(CPPFLAGS) -c -fPIC resume_download.c -o resume_download.o $(LDFLAGS) 

libresume.so:
    $(CC)  -shared -Wl,-soname,libresume.so.1 -o libresume.so  resume_download.o

clean:
    rm -f resume_download.o libresume.so

Now I have created one sample program that gonna to use this shared library, the Makefile for that program is :

CC= arm-none-linux-gnueabi-gcc
CPPFLAGS= -I/home/yuvi/development/libcurl/curl-7.24.0/build_arm/include -Wall -g 
LDFLAGS= -L/home/yuvi/development/libcurl/curl-7.24.0/build_arm/lib \
    -l:libcurl.a -l:libssh2.a -l:libssl.a -l:libcrypto.a  \
    -L/home/yuvi/development/CD/VAR-SOM-OM35_VAR-SOM-OM37_VAR-SOM-AM35/Software/Linux/host_tools/linux/arm-2009q3/arm-none-linux-gnueabi/libc/lib -lrt \
    -L/home/yuvi/development/libcurl/sample_program -lresume 

all:
    $(CC) $(CPPFLAGS) resume_app.c -o app $(LDFLAGS)

But If I make the above Makefile, I am getting the following errors :

/home/yuvi/development/libcurl/sample_program/libresume.so: undefined reference to `curl_easy_setopt'
/home/yuvi/development/libcurl/sample_program/libresume.so: undefined reference to `curl_global_cleanup'
/home/yuvi/development/libcurl/sample_program/libresume.so: undefined reference to `curl_easy_init'
/home/yuvi/development/libcurl/sample_program/libresume.so: undefined reference to `curl_easy_perform'
/home/yuvi/development/libcurl/sample_program/libresume.so: undefined reference to `curl_easy_cleanup'
/home/yuvi/development/libcurl/sample_program/libresume.so: undefined reference to `curl_global_init

Now how can I eliminate these error, Is there something wrong in creating shared library or compiling sample program.
Please Help….!

  • 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-05-31T09:12:37+00:00Added an answer on May 31, 2026 at 9:12 am

    Add -lresume before libcurl

    -lresume  -l:libcurl.a -l:libssh2.a -l:libssl.a -l:libcrypto.a  .... 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple project that uses a single library in order to run.
I'm trying to create a shared library on ubuntu using gcc I just have
I have created a sample report with crystal report 10. Now, I wanna to
I have created a sample java socket application. I used Socket s = new
How to manually create Friendly URLs? (PHP) So I have created simple php file
I have created a simple wcf service which used the WCF Service Library template.
I'm working on a multithreaded (pthread based) project. The project uses a library that
Using this guide I have created a static library (let's call it AppCore )
I have a third party library that I'm attempting to incorporate into a simulation.
I'm currently building an JavaScript project that uses NodeJS and some objects are shared

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.