<?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 __fastcall issue? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/fastcall-issue/m-p/59142#M8017</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Using the rendering API I bumped into the following problem:&lt;BR /&gt;&lt;BR /&gt;To use the FreeImage library I include its header and link its .lib file. The whole library uses __cdecl. It has function names like this: &lt;BR /&gt;FreeImage_Save(...)&lt;BR /&gt;&lt;BR /&gt;In the .lib it looks like this:&lt;BR /&gt;_FreeImage_Save@16&lt;BR /&gt;&lt;BR /&gt;But when I try to build my project the linker says it cannot find the implementation for the function named:&lt;BR /&gt;_FreeImage_Save&lt;BR /&gt;&lt;BR /&gt;(I am pretty sure it doesn't have to do with the extern "C" thing. )&lt;BR /&gt;&lt;BR /&gt;Any solutions would be very welcome.&lt;BR /&gt;&lt;BR /&gt;Chrispy&lt;/DIV&gt;</description>
    <pubDate>Mon, 07 Aug 2023 10:08:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-07T10:08:38Z</dc:date>
    <item>
      <title>__fastcall issue?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/fastcall-issue/m-p/59142#M8017</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Using the rendering API I bumped into the following problem:&lt;BR /&gt;&lt;BR /&gt;To use the FreeImage library I include its header and link its .lib file. The whole library uses __cdecl. It has function names like this: &lt;BR /&gt;FreeImage_Save(...)&lt;BR /&gt;&lt;BR /&gt;In the .lib it looks like this:&lt;BR /&gt;_FreeImage_Save@16&lt;BR /&gt;&lt;BR /&gt;But when I try to build my project the linker says it cannot find the implementation for the function named:&lt;BR /&gt;_FreeImage_Save&lt;BR /&gt;&lt;BR /&gt;(I am pretty sure it doesn't have to do with the extern "C" thing. )&lt;BR /&gt;&lt;BR /&gt;Any solutions would be very welcome.&lt;BR /&gt;&lt;BR /&gt;Chrispy&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Aug 2023 10:08:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/fastcall-issue/m-p/59142#M8017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-07T10:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: __fastcall issue?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/fastcall-issue/m-p/59143#M8018</link>
      <description>&lt;BLOCKQUOTE&gt;_FreeImage_Save@16 &lt;/BLOCKQUOTE&gt;

It looks like __stdcall name decoration.&lt;BR /&gt;
&lt;BR /&gt;
Is the functions in the header file of FreeImage library decrared&lt;BR /&gt;
like  __stdcall FreeImage_Save(...) or just FreeImage_Save(...) ?</description>
      <pubDate>Fri, 08 Apr 2005 04:21:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/fastcall-issue/m-p/59143#M8018</guid>
      <dc:creator>Oleg</dc:creator>
      <dc:date>2005-04-08T04:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: __fastcall issue?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/fastcall-issue/m-p/59144#M8019</link>
      <description>The header files are simply FreeImage_Save(...)&lt;BR /&gt;
&lt;BR /&gt;
Why does the linker search for _FreeImage_Save()  ?</description>
      <pubDate>Fri, 08 Apr 2005 08:16:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/fastcall-issue/m-p/59144#M8019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-04-08T08:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: __fastcall issue?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/fastcall-issue/m-p/59145#M8020</link>
      <description>Is the FreeImage libarary from sourceforge ?&lt;BR /&gt;
&lt;BR /&gt;
I have just downloaded it. The header file declaration is&lt;BR /&gt;
DLL_API BOOL DLL_CALLCONV FreeImage_Save()&lt;BR /&gt;
&lt;BR /&gt;
DLL_CALLCONV should be __stdcall. Make sure you project has&lt;BR /&gt;
defined WIN32 macro and NOT defined FREEIMAGE_LIB and __WIN32__&lt;BR /&gt;
( it is at the begin of the FreeImage.h header )</description>
      <pubDate>Fri, 08 Apr 2005 09:20:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/fastcall-issue/m-p/59145#M8020</guid>
      <dc:creator>Oleg</dc:creator>
      <dc:date>2005-04-08T09:20:38Z</dc:date>
    </item>
  </channel>
</rss>

