[Development] Qt 4.8.6 win32-msvc2008 compilation. error LNK2001: unresolved external symbol __imp__q_atomic_increment

Soraya Santana de la Fe soraya.santanaf at gmail.com
Mon Jun 1 14:50:49 CEST 2015


Dear all.
Goolging I have found this entry in a forum:
http://www.qtfr.org/viewtopic.php?id=12475
So I have defined QT_ARCH_WINDOWS for my project and it compiles and links
correctly!

My doubt is: Why is this define needed for my project? I have worked
previously with QT and I had never needed this.

Thanks in advance!

2015-06-01 13:10 GMT+02:00 Soraya Santana de la Fe <
soraya.santanaf at gmail.com>:

> Thanks for your answers!
>
> All those Link errors I reported are found when using a Q_OBJECT macro in
> my classes. No idea what is happening, even installing using a qt installer
> I am getting the same errors so it is not comming from my qt compilation.
>
>
> Should I check/set any environment variable. I have also tested setting
> QMAKESPEC to win32-msvc2008 explicitly but nothing works.
>
>
> Thankyou all!
>
> 2015-05-29 16:53 GMT+02:00 Thiago Macieira <thiago.macieira at intel.com>:
>
>> On Friday 29 May 2015 10:55:40 Soraya Santana de la Fe wrote:
>> > xx.obj : error LNK2019: unresolved external symbol
>> > __imp__q_atomic_increment referenced in function ...
>> > yy.obj : error LNK2001: unresolved external symbol
>> __imp__q_atomic_increment
>> > xx.obj : error LNK2019: unresolved external symbol
>> > __imp__q_atomic_decrement referenced in function "public: __thiscall ...
>> > yy.obj : error LNK2001: unresolved external symbol
>> __imp__q_atomic_decrement
>> >
>> > It seems that something is not being exported or not compiled for my
>> > windows platform. Any ideas would be really appreciated.
>>
>> Find out why this function was called in the first place. Nothing should
>> try to
>> call it at all on Windows, much less with MSVC.
>> --
>> Thiago Macieira - thiago.macieira (AT) intel.com
>>   Software Architect - Intel Open Source Technology Center
>>
>> _______________________________________________
>> Development mailing list
>> Development at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/development
>>
>
>
>
> --
> Soraya Santana de la Fe
>
>
>


-- 
Soraya Santana de la Fe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150601/ffb7c8ce/attachment.html>


More information about the Development mailing list