LNK2019 on CoCreateGuid [SOLVED]

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

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

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)" ([email protected]@@[email protected]@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 ?

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.

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)