Page 1 of 1

C++ with Qt: Problem using GetCoreTempInfo.dll

Posted: Mon Jan 23, 2012 8:14 am
by Bernie3888
Hi Guys,
I am using Qt-Creator with MinGW-Compiler to create a C++ based application. I added GetCoreTempInfo.dll to to my project and included the header file from the SDK. I also write the following line:

CoreTempProxy *proxy = new CoreTempProxy();

When I want to compile the programmcode, it stops with following message:

Error:undefined reference to `_imp___ZN13CoreTempProxyC1Ev'

I also tried to load the dll dynamically, but it dosn't work. Message: dll cant be loaded, beacause file not found.
Do you have any ideas how to solve this problem?

Thanks!
Greetz Bernie

Re: C++ with Qt: Problem using GetCoreTempInfo.dll

Posted: Mon Jan 23, 2012 12:32 pm
by The Coolest
Hi Bernie,

Have you tried it in a clean C++ (Visual C++ or similar) project to make sure that it works properly that way?
I've never looked into Qt compatibility, and never really used it before.

Re: C++ with Qt: Problem using GetCoreTempInfo.dll

Posted: Mon Jan 23, 2012 1:17 pm
by Bernie3888
Yes, I did on Visual C++ with MS Compiler and it works fine!

I'm not sure, but there might be some problems with MinGW-Compiler I guess. In another topic, there was a similar problem with the borland compiler, right?
Is it possible, to export the dll for MinGW? I tried "reimp" without success.

Greetz Bernie

Re: C++ with Qt: Problem using GetCoreTempInfo.dll

Posted: Mon Jan 23, 2012 2:32 pm
by The Coolest
I never used Borland either, but there was a user who asked about it, so I made a 32bit dll for Borland as well.

Re: C++ with Qt: Problem using GetCoreTempInfo.dll

Posted: Mon Jan 23, 2012 2:39 pm
by Bernie3888
okay... could you make a dll for mingw or is there any other chance to get the dll running with mingw?