<?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 Linker error - unresolved external symbol GetClassInfo in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Linker-error-unresolved-external-symbol-GetClassInfo/m-p/117712#M6663</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi! &lt;BR /&gt;I got linker error: &lt;BR /&gt;&lt;BR /&gt;error LNK2001: unresolved external symbol "public: virtual class GS::ClassInfo * __thiscall GS::Object::GetClassInfoW(void)const " (?GetClassInfoW@Object@GS@@UBEPAVClassInfo@2@XZ) &lt;BR /&gt;&lt;BR /&gt;after that as added following code &lt;BR /&gt;&lt;BR /&gt;GS::Array&amp;lt;GS::ArrayFB&amp;lt;GS::UniString, 3&amp;gt;&amp;gt; autotexts; &lt;BR /&gt;&lt;BR /&gt;This is a peace of sample from API Development Kit help &lt;BR /&gt;See the "APIAny_GetAutoTextsID" topic &lt;BR /&gt;&lt;BR /&gt;Example: &lt;BR /&gt;#include "UniString.hpp" &lt;BR /&gt;#include "Array.hpp" &lt;BR /&gt;&lt;BR /&gt;GS::Array&amp;lt;GS::ArrayFB&amp;lt;GS::UniString, 3&amp;gt; &amp;gt; autotexts; &lt;BR /&gt;API_AutotextType type = APIAutoText_Fixed; &lt;BR /&gt;&lt;BR /&gt;GSErrCode err = ACAPI_Goodies (APIAny_GetAutoTextsID, &amp;amp;autotexts, (void *) (long) type); &lt;BR /&gt;if (err == NoError) { &lt;BR /&gt;for (ULong i = 0; i &amp;lt; autotexts.GetSize (); i++) { &lt;BR /&gt;DBPrintf ("AutoText[%03d] \"%s\" (\"%s\") = \"%s\"\n", i, &lt;BR /&gt;(const char *) autotexts&lt;I&gt;[0].ToCStr (), (const char *) autotexts&lt;I&gt;[1].ToCStr (), (const char *) autotexts&lt;I&gt;[2].ToCStr ()); &lt;BR /&gt;} &lt;BR /&gt;} &lt;BR /&gt;&lt;BR /&gt;Here is list of my libs: &lt;BR /&gt;&lt;BR /&gt;acap_stat.lib &lt;BR /&gt;libcmtd.lib &lt;BR /&gt;LIBCPMTD.LIB &lt;BR /&gt;kernel32.lib &lt;BR /&gt;advapi32.lib &lt;BR /&gt;user32.lib &lt;BR /&gt;GSRootImp.lib &lt;BR /&gt;dgimp.lib &lt;BR /&gt;InputOutputImp.lib &lt;BR /&gt;libxml2.lib &lt;BR /&gt;iconv.lib &lt;BR /&gt;&lt;BR /&gt;I tried include others libs that have GetClassInfo symbol, but it did not help. &lt;BR /&gt;&lt;BR /&gt;Hope to your help! &lt;BR /&gt;Thanks in advance.&lt;BR /&gt;AT&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 03 Aug 2023 15:18:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-03T15:18:06Z</dc:date>
    <item>
      <title>Linker error - unresolved external symbol GetClassInfo</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Linker-error-unresolved-external-symbol-GetClassInfo/m-p/117712#M6663</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi! &lt;BR /&gt;I got linker error: &lt;BR /&gt;&lt;BR /&gt;error LNK2001: unresolved external symbol "public: virtual class GS::ClassInfo * __thiscall GS::Object::GetClassInfoW(void)const " (?GetClassInfoW@Object@GS@@UBEPAVClassInfo@2@XZ) &lt;BR /&gt;&lt;BR /&gt;after that as added following code &lt;BR /&gt;&lt;BR /&gt;GS::Array&amp;lt;GS::ArrayFB&amp;lt;GS::UniString, 3&amp;gt;&amp;gt; autotexts; &lt;BR /&gt;&lt;BR /&gt;This is a peace of sample from API Development Kit help &lt;BR /&gt;See the "APIAny_GetAutoTextsID" topic &lt;BR /&gt;&lt;BR /&gt;Example: &lt;BR /&gt;#include "UniString.hpp" &lt;BR /&gt;#include "Array.hpp" &lt;BR /&gt;&lt;BR /&gt;GS::Array&amp;lt;GS::ArrayFB&amp;lt;GS::UniString, 3&amp;gt; &amp;gt; autotexts; &lt;BR /&gt;API_AutotextType type = APIAutoText_Fixed; &lt;BR /&gt;&lt;BR /&gt;GSErrCode err = ACAPI_Goodies (APIAny_GetAutoTextsID, &amp;amp;autotexts, (void *) (long) type); &lt;BR /&gt;if (err == NoError) { &lt;BR /&gt;for (ULong i = 0; i &amp;lt; autotexts.GetSize (); i++) { &lt;BR /&gt;DBPrintf ("AutoText[%03d] \"%s\" (\"%s\") = \"%s\"\n", i, &lt;BR /&gt;(const char *) autotexts&lt;I&gt;[0].ToCStr (), (const char *) autotexts&lt;I&gt;[1].ToCStr (), (const char *) autotexts&lt;I&gt;[2].ToCStr ()); &lt;BR /&gt;} &lt;BR /&gt;} &lt;BR /&gt;&lt;BR /&gt;Here is list of my libs: &lt;BR /&gt;&lt;BR /&gt;acap_stat.lib &lt;BR /&gt;libcmtd.lib &lt;BR /&gt;LIBCPMTD.LIB &lt;BR /&gt;kernel32.lib &lt;BR /&gt;advapi32.lib &lt;BR /&gt;user32.lib &lt;BR /&gt;GSRootImp.lib &lt;BR /&gt;dgimp.lib &lt;BR /&gt;InputOutputImp.lib &lt;BR /&gt;libxml2.lib &lt;BR /&gt;iconv.lib &lt;BR /&gt;&lt;BR /&gt;I tried include others libs that have GetClassInfo symbol, but it did not help. &lt;BR /&gt;&lt;BR /&gt;Hope to your help! &lt;BR /&gt;Thanks in advance.&lt;BR /&gt;AT&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 15:18:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Linker-error-unresolved-external-symbol-GetClassInfo/m-p/117712#M6663</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-03T15:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Linker error - unresolved external symbol GetClassInfo</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Linker-error-unresolved-external-symbol-GetClassInfo/m-p/117713#M6664</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Just guessing.&lt;BR /&gt;
I think this is not "library" or linker issue.&lt;BR /&gt;
It looks like preprocesor substitue GetClassInfo to GetClassInfoW in windows.h&lt;BR /&gt;
I guess, may be you didnt define WINDOWS directive. Read docs closely.&lt;BR /&gt;
"Compilation and Linking Issues" subject. &lt;BR /&gt;
So  WINDOWS an ACExtension directives are required.&lt;BR /&gt;
&lt;BR /&gt;
PS: &lt;BR /&gt;
And strange, why you have GetClassInfoW but not GetClassInfoA.&lt;BR /&gt;
It seems you have UNICODE directive defined (Use Unicode character set). &lt;BR /&gt;
Actually I am not sure - is it correct or wrong. &lt;BR /&gt;
May be you will need to change it to "Use Multi-Byte Character Set".&lt;BR /&gt;
May be not... &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Oleg</description>
      <pubDate>Tue, 14 Apr 2009 16:25:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Linker-error-unresolved-external-symbol-GetClassInfo/m-p/117713#M6664</guid>
      <dc:creator>Oleg</dc:creator>
      <dc:date>2009-04-14T16:25:21Z</dc:date>
    </item>
  </channel>
</rss>

