<?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 Re: Error LNK2019 when using dll maker in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601026#M94760</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Microsoft's &lt;A rel="noopener noreferrer" href="https://learn.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk2019?view=msvc-170#a-function-or-variable-is-declared-but-not-defined" target="_blank"&gt;documentation&lt;/A&gt; states that "LNK2019 can occur when a declaration exists in a header file, but no matching definition is implemented. For member functions or static data members, the implementation must include the class scope selector." So, it looks like there's a FlexSim::Map::~Map(void) defined in the header somewhere, but no implementation?&lt;/P&gt;&lt;P&gt;Could you provide more information like &lt;EM&gt;what &lt;/EM&gt;you're implementing and &lt;EM&gt;where &lt;/EM&gt;you're implementing it? Thank you.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 28 Jul 2023 17:05:44 GMT</pubDate>
    <dc:creator>kavika_faleumu</dc:creator>
    <dc:date>2023-07-28T17:05:44Z</dc:date>
    <item>
      <title>Error LNK2019 when using dll maker</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601025#M94759</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.2.4 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;When i implement some function which build in dll release mode, occur a error liked this :&lt;/P&gt;
 &lt;PRE&gt;error LNK2019: Unresolved external symbol "__declspec(dllimport) public: __cdecl FlexSim::Map::~Map(void)" (__imp_??1Map@FlexSim@@QEAA@XZ)&lt;/PRE&gt;
 &lt;P&gt;what should i do fo it?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Jul 2023 09:47:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601025#M94759</guid>
      <dc:creator>yexioamu</dc:creator>
      <dc:date>2023-07-28T09:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error LNK2019 when using dll maker</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601026#M94760</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Microsoft's &lt;A rel="noopener noreferrer" href="https://learn.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk2019?view=msvc-170#a-function-or-variable-is-declared-but-not-defined" target="_blank"&gt;documentation&lt;/A&gt; states that "LNK2019 can occur when a declaration exists in a header file, but no matching definition is implemented. For member functions or static data members, the implementation must include the class scope selector." So, it looks like there's a FlexSim::Map::~Map(void) defined in the header somewhere, but no implementation?&lt;/P&gt;&lt;P&gt;Could you provide more information like &lt;EM&gt;what &lt;/EM&gt;you're implementing and &lt;EM&gt;where &lt;/EM&gt;you're implementing it? Thank you.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Jul 2023 17:05:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601026#M94760</guid>
      <dc:creator>kavika_faleumu</dc:creator>
      <dc:date>2023-07-28T17:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error LNK2019 when using dll maker</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601027#M94761</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The DLL Maker can only access a limited set of types and functions. The Variant class and Map class are not accessible from the DLL Maker.&lt;/P&gt;&lt;P&gt;If you use the Module SDK, you can access both those classes, as well as many others.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Jul 2023 17:48:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601027#M94761</guid>
      <dc:creator>JordanLJohnson</dc:creator>
      <dc:date>2023-07-28T17:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error LNK2019 when using dll maker</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601028#M94762</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 When I built it in debug model，it did’t occur the error
&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Jul 2023 23:00:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601028#M94762</guid>
      <dc:creator>yexioamu</dc:creator>
      <dc:date>2023-07-28T23:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error LNK2019 when using dll maker</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601029#M94763</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/42692/yexioamu.html" nodeid="42692"&gt;@yexioamu&lt;/A&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 Jul 2023 17:06:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601029#M94763</guid>
      <dc:creator>kavika_faleumu</dc:creator>
      <dc:date>2023-07-31T17:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error LNK2019 when using dll maker</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601030#M94764</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/42692/yexioamu.html" nodeid="42692"&gt;@yexioamu&lt;/A&gt;, can you share with us what you're trying to do? Maybe that will help us try to replicate your error. Thank you.&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 15:08:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601030#M94764</guid>
      <dc:creator>kavika_faleumu</dc:creator>
      <dc:date>2023-08-01T15:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error LNK2019 when using dll maker</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601031#M94765</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Sorry, I will show you tomorrow, I am on a business trip.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 15:13:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601031#M94765</guid>
      <dc:creator>yexioamu</dc:creator>
      <dc:date>2023-08-01T15:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error LNK2019 when using dll maker</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601032#M94766</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;My function is simple, this is one of my function in mydll.cpp, it is a simple UUID function:&lt;/P&gt;
 &lt;PRE&gt;// C LIBRARY FOR INPUT/OUTPUT STREAMS
#include &amp;lt;stdio.h&amp;gt;
// IN ORDER TO HAVE ACCESS TO FLEXSIM FUNCTIONS, INCLUDE FLEXSIMDEFS.H
#include "FlexsimDefs.h"

#include &amp;lt;iostream&amp;gt;
#include &amp;lt;windows.h&amp;gt;
#include &amp;lt;winhttp.h&amp;gt;
#include &amp;lt;websocket.h&amp;gt;
#include &amp;lt;vector&amp;gt;
#include &amp;lt;time.h&amp;gt;
#include &amp;lt;sys/timeb.h&amp;gt;
#include &amp;lt;string&amp;gt;
#include &amp;lt;atlstr.h&amp;gt;
#include &amp;lt;thread&amp;gt;

#pragma comment(lib, "Websocket.lib")
#pragma comment(lib, "winhttp.lib")
using namespace std;

//#define CHROME_USER_AGENT TEXT("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36")
#define CHROME_USER_AGENT TEXT("Apache-HttpClient/4.5.12 (Java/11.0.6)")


__declspec(dllexport) Variant UUIDF(FLEXSIMINTERFACE)
{
//struct timeb stb;
//::ftime(&amp;amp;stb);
//::srand((unsigned)stb.millitm);

LARGE_INTEGER nStartCounter;
::QueryPerformanceCounter(&amp;amp;nStartCounter);
::srand((unsigned)nStartCounter.LowPart);


//srand((unsigned)time(NULL));
CString strRand;
long long time_last = time(NULL);
struct timeb t1;
ftime(&amp;amp;t1);
long long t2 = t1.time * 100000 + t1.millitm * 100 + rand();
int letter1 = 'A' + rand() % 26;
int letter2 = 'A' + rand() % 26;
int letter3 = 'A' + rand() % 26;

string t3 = to_string(t1.time) + (char)letter1 + (char)letter2 + to_string(t1.millitm) + (char)letter3;

return t3&lt;/PRE&gt;
 &lt;P&gt;when i build it in debug model, it builds success, but in release model, it occur the error:&lt;/P&gt;
 &lt;PRE&gt;error LNK2019: Unresolved external symbol "__declspec(dllimport) public: __cdecl FlexSim::Map::~Map(void)" (__imp_??1Map@FlexSim@@QEAA@XZ)&lt;/PRE&gt;
 &lt;P&gt;and in my other mydll function, it occur in release model too.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 02:27:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601032#M94766</guid>
      <dc:creator>yexioamu</dc:creator>
      <dc:date>2023-08-02T02:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error LNK2019 when using dll maker</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601033#M94767</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;After copying your code into a DLL Maker and updating the Solution Properties (i.e., updating the C/C++ Language Standards to use ISO C17 and C++17 &lt;EM&gt;and &lt;/EM&gt;updating the Platform Toolset to use Visual Studio 2019 (v142)), I don't get the LNK2019 error you're getting. Are you sure this is the function throwing the error? I don't see a Map being used in this code, which is what looks to be causing this error somehow.&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 16:31:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601033#M94767</guid>
      <dc:creator>kavika_faleumu</dc:creator>
      <dc:date>2023-08-02T16:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error LNK2019 when using dll maker</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601034#M94768</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I use the same C/C++ Language Standards and Platform Toolset as you. In my UUIDF function, i did't used a Map, but it still occur this error, and in my other function which without Map, this LNK2019 error occur too in release model.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 00:45:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601034#M94768</guid>
      <dc:creator>yexioamu</dc:creator>
      <dc:date>2023-08-03T00:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error LNK2019 when using dll maker</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601035#M94769</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/42692/yexioamu.html" nodeid="42692"&gt;@yexioamu&lt;/A&gt;, I'm confused as to why you're getting this error and I'm not since we're using the same settings. Would you mind uploading the files you're using? I would like to take a look at them.&lt;/P&gt;&lt;P&gt;If they contain sensitive information, you could make the question private so only certain FlexSim Employees can see them.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 05 Aug 2023 19:59:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601035#M94769</guid>
      <dc:creator>kavika_faleumu</dc:creator>
      <dc:date>2023-08-05T19:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error LNK2019 when using dll maker</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601036#M94770</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/42692/yexioamu.html" nodeid="42692"&gt;@yexioamu&lt;/A&gt;, was Jordan Johnson's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;
 &lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Aug 2023 21:10:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-lnk2019-when-using-dll-maker/m-p/13601036#M94770</guid>
      <dc:creator>julie_weller</dc:creator>
      <dc:date>2023-08-09T21:10:33Z</dc:date>
    </item>
  </channel>
</rss>

