<?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 C++ API error: initializePlugin function could not be found in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/c-api-error-initializeplugin-function-could-not-be-found/m-p/4260749#M15018</link>
    <description>I am new to developing plug-ins in C++ for Maya. I compiled a hello world plugin. There were no errors in the build, but when I try to load the plug-in in Maya, I get the following error:&lt;BR /&gt;&lt;BR /&gt;// Error: file: C:/Program Files/Autodesk/Maya2011/scripts/others/pluginWin.mel line 665: initializePlugin function could not be found in plug-in (helloWorld) //&lt;BR /&gt;&lt;BR /&gt;I did define the initializePlugin function in my .cpp file as you can see here:&lt;BR /&gt;&lt;A href="http://www.pasteall.org/34571/cpp" target="_blank"&gt;http://www.pasteall.org/34571/cpp&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Any assistance would be appreciated! I'm running maya 2011 on windows vista x32 and I compiled from the Microsoft Visual C++ Express 2010 with the Microsoft SDK 7.1</description>
    <pubDate>Sun, 19 Aug 2012 03:18:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-19T03:18:26Z</dc:date>
    <item>
      <title>C++ API error: initializePlugin function could not be found</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/c-api-error-initializeplugin-function-could-not-be-found/m-p/4260749#M15018</link>
      <description>I am new to developing plug-ins in C++ for Maya. I compiled a hello world plugin. There were no errors in the build, but when I try to load the plug-in in Maya, I get the following error:&lt;BR /&gt;&lt;BR /&gt;// Error: file: C:/Program Files/Autodesk/Maya2011/scripts/others/pluginWin.mel line 665: initializePlugin function could not be found in plug-in (helloWorld) //&lt;BR /&gt;&lt;BR /&gt;I did define the initializePlugin function in my .cpp file as you can see here:&lt;BR /&gt;&lt;A href="http://www.pasteall.org/34571/cpp" target="_blank"&gt;http://www.pasteall.org/34571/cpp&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Any assistance would be appreciated! I'm running maya 2011 on windows vista x32 and I compiled from the Microsoft Visual C++ Express 2010 with the Microsoft SDK 7.1</description>
      <pubDate>Sun, 19 Aug 2012 03:18:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/c-api-error-initializeplugin-function-could-not-be-found/m-p/4260749#M15018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-19T03:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: C++ API error: initializePlugin function could not be found</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/c-api-error-initializeplugin-function-could-not-be-found/m-p/4260750#M15019</link>
      <description>Issue solved:&lt;BR /&gt;I needed to add export lines in the linker. Here's the whole setup process in case anyone has trouble in the future. Change these settings in your solution properties:&lt;BR /&gt;&lt;BR /&gt;configuration properties&amp;gt;general&lt;BR /&gt;target extention = .mll&lt;BR /&gt;platform toolset = windows7.1SDK&lt;BR /&gt;configuration type = .dll&lt;BR /&gt;&lt;BR /&gt;configuration properties&amp;gt;VC++ Directories&lt;BR /&gt;include directories = add maya include path&lt;BR /&gt;library directories = add maya lib path&lt;BR /&gt;&lt;BR /&gt;configuration properties&amp;gt;C/C++&lt;BR /&gt;additional include directories = add maya include path&lt;BR /&gt;&lt;BR /&gt;configuration properties&amp;gt;C/C++&amp;gt;preprocessor&lt;BR /&gt;preprocessor definitions = add ;NT_PLUGIN;REQUIRE_IOSTREAM&lt;BR /&gt;&lt;BR /&gt;configuration properties&amp;gt;linker&amp;gt;input&lt;BR /&gt;additional dependencies = add ;Foundation.lib;OpenMaya.lib;OpenMayaUI.lib;OpenMayaAnim.lib;OpenMayaFX.lib;OpenMayaRender.lib;Image.lib&lt;BR /&gt;&lt;BR /&gt;configuration properties&amp;gt;linker&amp;gt;command line&lt;BR /&gt;additional options = add /export:initializePlugin /export:uninitializePlugin</description>
      <pubDate>Sun, 19 Aug 2012 17:52:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/c-api-error-initializeplugin-function-could-not-be-found/m-p/4260750#M15019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-19T17:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: C++ API error: initializePlugin function could not be found</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/c-api-error-initializeplugin-function-could-not-be-found/m-p/4921962#M15020</link>
      <description>&lt;P&gt;Thanks Mate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You just saved my hair! Was gradually pulling it out over this &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2014 07:36:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/c-api-error-initializeplugin-function-could-not-be-found/m-p/4921962#M15020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-31T07:36:19Z</dc:date>
    </item>
  </channel>
</rss>

