Issue with using __uuidof in Mingw64. Does Mingw support it ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue with using __uuidof in Mingw64. Does Mingw support it ?

James Franco
I am in the process of porting some code from Visual Studio to Mingw 64 bit using . The details of my gcc are mentioned below

c:\mingw64\bin>gcc --version
gcc (x86_64-win32-seh-rev3, Built by MinGW-W64 project) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Now in my code I have something like this

MemTest::MemTest(LPUNKNOWN ptr, HRESULT *hr, OutputBuffer *buffer)
: TVideoRender(__uuidof(CLSID_MemTest)),
{
   ....
   ....
}

At this point I get the linker error


undefined reference to `_GUID const& __mingw_uuidof<CLSID_MemTest>()'

Any suggestions on how to resovle this issue ?

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: Issue with using __uuidof in Mingw64. Does Mingw support it ?

Eli Zaretskii
> Date: Wed, 8 Apr 2015 11:10:06 -0700
> From: James Franco <[hidden email]>
>
> I am in the process of porting some code from Visual Studio to Mingw 64 bit
> using . The details of my gcc are mentioned below
>
> c:\mingw64\bin>gcc --version
> gcc (x86_64-win32-seh-rev3, Built by MinGW-W64 project) 4.8.2
> Copyright (C) 2013 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> Now in my code I have something like this
>
> MemTest::MemTest(LPUNKNOWN ptr, HRESULT *hr, OutputBuffer *buffer)
> : TVideoRender(__uuidof(CLSID_MemTest)),
> {
> ....
> ....
> }
>
> At this point I get the linker error
>
> undefined reference to `_GUID const& __mingw_uuidof<CLSID_MemTest>()'
>
> Any suggestions on how to resovle this issue ?

I think this is the wrong list to ask questions about MinGW64.

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe