Login | Register

C++ with Qt: Problem using GetCoreTempInfo.dll

User feature requests
Planned features for Core Temp
  • Author
    Message

C++ with Qt: Problem using GetCoreTempInfo.dll

Postby Bernie3888 » Mon Jan 23, 2012 8:14 am

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
Bernie3888
Registered User
Registered User
 
Posts: 3
Joined: Mon Jan 23, 2012 8:01 am

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

Postby The Coolest » Mon Jan 23, 2012 12:32 pm

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.
Member of our O/C Folding @ Home team
"<The_Coolest> you can't unwaste wasted CPU cycles" - Start FOLDing now!
Main rig:
Core i7 2600K 3.4GHz @ 4.5GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / SSD: Crucial M4 128GB (+ HDDs) / GPU: HD5450 / Mem: 4x4GB DDR3-1600 G.Skill 4GBXL RipJaws X - 16GB total / PSU: Seasonic S12II 620W.
Secondary rig:
Core i3 540 3.06GHz @ Stock / Mobo: MSI H55M-ED55 / GPU: Integrated / Mem: 2x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 4GB total / PSU: FSP ATX350-PNR 350W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors
User avatar
The Coolest
Site Admin
Site Admin
 
Posts: 2961
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel

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

Postby Bernie3888 » Mon Jan 23, 2012 1:17 pm

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
Bernie3888
Registered User
Registered User
 
Posts: 3
Joined: Mon Jan 23, 2012 8:01 am

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

Postby The Coolest » Mon Jan 23, 2012 2:32 pm

I never used Borland either, but there was a user who asked about it, so I made a 32bit dll for Borland as well.
Member of our O/C Folding @ Home team
"<The_Coolest> you can't unwaste wasted CPU cycles" - Start FOLDing now!
Main rig:
Core i7 2600K 3.4GHz @ 4.5GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / SSD: Crucial M4 128GB (+ HDDs) / GPU: HD5450 / Mem: 4x4GB DDR3-1600 G.Skill 4GBXL RipJaws X - 16GB total / PSU: Seasonic S12II 620W.
Secondary rig:
Core i3 540 3.06GHz @ Stock / Mobo: MSI H55M-ED55 / GPU: Integrated / Mem: 2x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 4GB total / PSU: FSP ATX350-PNR 350W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors
User avatar
The Coolest
Site Admin
Site Admin
 
Posts: 2961
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel

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

Postby Bernie3888 » Mon Jan 23, 2012 2:39 pm

okay... could you make a dll for mingw or is there any other chance to get the dll running with mingw?
Bernie3888
Registered User
Registered User
 
Posts: 3
Joined: Mon Jan 23, 2012 8:01 am

Return to Development

Who is online

Users browsing this forum: No registered users and 2 guests