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 664463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:36:09+00:00 2026-05-13T23:36:09+00:00

I am planning to use libcurl in my project. I had downloaded the library

  • 0

I am planning to use libcurl in my project. I had downloaded the library source,built and integrated it in a small POC application. I am able to build and run the application without any issues with the generated libcurl.dll and libcurl_imp.lib files. Now when I integrate the same library in my project I am getting linker errors.

6>foo.obj : error LNK2001: unresolved external symbol __imp__curl_easy_setopt

6>foo.obj : error LNK2001: unresolved external symbol __imp__curl_easy_perform

6>foo.obj : error LNK2001: unresolved external symbol __imp__curl_easy_cleanup

6>foo.obj : error LNK2001: unresolved external symbol __imp__curl_global_init

6>foo.obj : error LNK2001: unresolved external symbol __imp__curl_easy_init

I have researched and tried all manners of workarounds like adding CURL_STATICLIB definitions , additional libraries , changing to /MT even copying the libs to the release directory but nothing seems to work. As far as I can see the only difference between approach #1 and #2 in my steps are #1 is an console application using the libcurl.dll while in my main project this is another dll which is trying to link to libcurl.dll.. Would that necessitate any change in approach? Can I use the same generated multi threaded DLL /MD file for both(Tried /MT also with no success)? Any other ideas?

Following are the linker options.

————————————————-Working————————————————-

/OUT:”C:\SampleFTP\Release\SampleFTP.exe” /INCREMENTAL:NO /NOLOGO
/LIBPATH:”C:\SampleFTP\SampleFTP\Release”
/MANIFEST /MANIFESTFILE:”Release\SampleFTP.exe.intermediate.manifest”
/DEBUG /PDB:”c:\SampleFTP\release\SampleFTP.pdb”
/SUBSYSTEM:CONSOLE
/OPT:REF /OPT:ICF /LTCG
/MACHINE:X86
/ERRORREPORT:PROMPT
libcurl_imp.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

————————————————-Working————————————————-

———————————————-NotWorking————————————————-

/OUT:”…….\nt\Win32\Release/foo__tests.dll” /INCREMENTAL:NO /NOLOGO
/LIBPATH:”C:\FullLibPath\libcurl_libs”
/LIBPATH:”……\nt\Win32\Release”
/DLL
/MANIFEST /MANIFESTFILE:”.\foo__tests\Win32\Release\foo__tests.dll.intermediate.manifest” /DEBUG /PDB:”…….\nt\Win32\Release/foo_tests.pdb”
/OPT:REF /OPT:ICF /LTCG
/IMPLIB:”…….\nt\Win32\Release/foo_tests.lib”
/MACHINE:X86
/ERRORREPORT:PROMPT
odbc32.lib odbccp32.lib util_process.lib wsock32.lib Version.lib libcurl_imp.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
“……\nt\win32\release\otherlib1.lib”
“……\nt\win32\release\otherlib2.lib”

———————————————-NotWorking————————————————-

  • 1 1 Answer
  • 1 View
  • 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-13T23:36:10+00:00Added an answer on May 13, 2026 at 11:36 pm

    Ok…This embrassing….I had managed to resolve the issue and as you might guess it has nothing to do with libcurl..Basically the file which is linking to libcurl is part of multiple projects. So while I have defined the libs correctly in the first project, I have not in the others..And the build log shows the projects(success/failure messages) one after another and I could notice the problem only while going through togeather with my senior…All in all a humbling experience..

    Lesson learnt(for future visitors here) would be
    – Libcurl is a mature product and is unlikely to crib for basic bundling
    – Only thing necessary if you are going to use windows .dll would be
    1) Download source. Open soln file. Build(as release dll).
    2) Include additional header path for curl libraries.
    3) Include .lib file as a dependency while linking.
    4) Start making curl calls (including ther curl headers in source)

    and you should be good to go. For starting off(other than the excellent repository at the home page) I have fount a good tutorial here…

    http://www.luckyspin.org/?p=28

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am planning to use pure C MPI library in C++ application, I don't
We are planning to use HTML 5 's Application cache in our application for
I am planning to use SCTP for a embedded Linux project. Anybody has some
I am planning to use PIC18F6*** serial microntroller for my project serial-ethernet converter. Once
im planning to use java/jsp for web application installed on virtual web hosting space
I'm planning to use Mustache templates along with Kohana in my next project. So
I am planning to use coverflow control in my Silverlight application, but I am
I am planning to use Snowball stemming solution in one of my commercial application.There
I am planning to use Ext JS for a large application. The application's features
I am planning to use ShellExecute for the updater of an application written in

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.