Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    LNK2019 on CoCreateGuid [SOLVED]

    SDK Help
    0
    3
    340
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 21/09/2015 at 10:39, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   16 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi,
      Im trying to include Melange to my QT app but can't get to resolve the last linker error.
      I searched the forums but there isnt anything on this specific symbol 😢

      The error is: melangelib_release.lib(c4d_basetime.obj) 👎 error: LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp_CoCreateGuid" in Funktion ""class melange::GeMarker __cdecl melange::GeGetNewMarker(void)" (?GeGetNewMarker@melange@@YA?AVGeMarker@1@XZ)".

      Im using QT 5.5 with MSVC2013 compiling in 64bit. Statically including in MD. Linking to both jpeglib and melangelib. I tried with a simple QT commandline app with same result. This happens as soon as I add to my main.cpp #include <default_alien_overloads.h>

      The last linker error was about getWriterInfo which simply needed an overwrite. Do I need to overwrite this too ? All other linker errors were solved by including -lwinmm -lWSock32.

      Is more information required ?

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 22/09/2015 at 01:56, xxxxxxxx wrote:

        Hi and welcome to the Plugin Cafe.

        CoCreateGuid() is from the Win32 COM library. You should include -lole32 in the link generation too.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 22/09/2015 at 02:35, xxxxxxxx wrote:

          Thank you ! This resolved it.  🙂

          A note about those 3 windows libs in the QuickstartGuide could be useful for others. (Got the other 2 from another public github)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post