Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Getting Redefinition Error

From: T V LIJIN \(EXT\) via curl-library <"T>
Date: Tue, 13 Oct 2020 06:09:28 +0000

Hello Daniel,
The version of Libcurl I'm using is curl-7.72.0
I'm trying to build this for windows-Visual studio 19 by using just the source and header files because I don't want to build it as .so or lib dll file : I have attached the copy of the same; I'm trying to build this way to make it easy to port for RTOS devices.


\curl-7.72.0\lib\share.c(35,20): error C2371: 'curl_share_init': redefinition; different basic types
\curl-7.72.0\include\curl\curl.h(2732): message : see declaration of 'curl_share_init'

Waiting for your valuable feedback,
Thanks in advance
Thanks,
LIJIN T V
________________________________
From: Daniel Stenberg <daniel_at_haxx.se>
Sent: Tuesday, October 13, 2020 11:26 AM
To: curl-library_at_cool.haxx.se <curl-library_at_cool.haxx.se>
Cc: T V LIJIN (EXT) <lijin.tv_at_kone.com>
Subject: Re: Getting Redefinition Error

This message is from an external sender. Be cautious, especially with links and attachments.

On Tue, 13 Oct 2020, T V LIJIN (EXT) via curl-users wrote:

> Could you please help me with this issue : I'm getting a redefinition error
> while building libcurl from source without using dll.

How did you (try to) build it? What version?

--
  / daniel.haxx.se | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
                   | https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.wolfssl.com%2Fcontact%2F&amp;data=04%7C01%7Clijin.tv%40kone.com%7Cebf49effe2784f13360608d86f3cb7fe%7C2bb82c642eb143f78862fdc1d2333b50%7C0%7C0%7C637381653865386822%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=4qTCCKwHsiipgwQF%2FjdnkaTa5d0yPdaO4W%2B9Ew%2FOags%3D&amp;reserved=0



-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-10-13