<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic libcurl library causing plugin to disappear from menu in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/libcurl-library-causing-plugin-to-disappear-from-menu/m-p/292821#M5476</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm trying to implement curl library into my archicad plugin. On MAC there are no problems with it, but on Windows I can only compile the code without errors, and then if I open AC21 on Windows it says that the plugin is outdated. &lt;BR /&gt;&lt;BR /&gt;This is the code that causes the error:&lt;BR /&gt;
&lt;PRE&gt;curl_global_init(CURL_GLOBAL_ALL);

	

	CURL *curl;
	CURLcode res;

	curl = curl_easy_init();

	string urlString = "somesite";

	
	if (curl) {


		curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);

		curl_easy_setopt(curl, CURLOPT_URL, urlString.c_str());
		
		curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);

	
		
		res = curl_easy_perform(curl);

		WriteReport("CURL IS %s", urlString.c_str());
		
		WriteReport("CURL status is %i", res);
		if (res != CURLE_OK)
			fprintf(stderr, "curl_easy_perform() failed: %s\n",
				curl_easy_strerror(res));

		setProjectBuildups(userID);

		
		curl_easy_cleanup(curl);
	}
	&lt;/PRE&gt;
If I remove this code the plugin doesn't appear as outdated and it runs fine. I also notice that when I compile in VS2017 there is a libcurl.dll file in the build folder. Should I somehow include this .dll file in the add-ons folder ? Every help will be highly appreciated &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" border="0" /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Julian&lt;/DIV&gt;</description>
    <pubDate>Wed, 05 Jul 2023 14:59:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-07-05T14:59:16Z</dc:date>
    <item>
      <title>libcurl library causing plugin to disappear from menu</title>
      <link>https://community.graphisoft.com/t5/GDL/libcurl-library-causing-plugin-to-disappear-from-menu/m-p/292821#M5476</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm trying to implement curl library into my archicad plugin. On MAC there are no problems with it, but on Windows I can only compile the code without errors, and then if I open AC21 on Windows it says that the plugin is outdated. &lt;BR /&gt;&lt;BR /&gt;This is the code that causes the error:&lt;BR /&gt;
&lt;PRE&gt;curl_global_init(CURL_GLOBAL_ALL);

	

	CURL *curl;
	CURLcode res;

	curl = curl_easy_init();

	string urlString = "somesite";

	
	if (curl) {


		curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);

		curl_easy_setopt(curl, CURLOPT_URL, urlString.c_str());
		
		curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);

	
		
		res = curl_easy_perform(curl);

		WriteReport("CURL IS %s", urlString.c_str());
		
		WriteReport("CURL status is %i", res);
		if (res != CURLE_OK)
			fprintf(stderr, "curl_easy_perform() failed: %s\n",
				curl_easy_strerror(res));

		setProjectBuildups(userID);

		
		curl_easy_cleanup(curl);
	}
	&lt;/PRE&gt;
If I remove this code the plugin doesn't appear as outdated and it runs fine. I also notice that when I compile in VS2017 there is a libcurl.dll file in the build folder. Should I somehow include this .dll file in the add-ons folder ? Every help will be highly appreciated &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" border="0" /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Julian&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Jul 2023 14:59:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/libcurl-library-causing-plugin-to-disappear-from-menu/m-p/292821#M5476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-05T14:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: libcurl library causing plugin to disappear from menu</title>
      <link>https://community.graphisoft.com/t5/GDL/libcurl-library-causing-plugin-to-disappear-from-menu/m-p/292822#M5477</link>
      <description>It's probably down to the way you link the curl library into the add-on. If you're using dynamic linking and library can't be found at runtime, the add-on won't load. ARCHICAD always says the add-on is outdated no matter what the problem is.&lt;BR /&gt;
&lt;BR /&gt;
You could either bundle the dll with the add-on or try static linking instead.</description>
      <pubDate>Mon, 28 May 2018 18:04:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/libcurl-library-causing-plugin-to-disappear-from-menu/m-p/292822#M5477</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2018-05-28T18:04:33Z</dc:date>
    </item>
  </channel>
</rss>

