Linker errors when building Qt 5.6 for Windows CE 7



  • Hi,

    I am trying to build Qt 5.6.1 from source for a Win CE 7 target device. I have installed VS2008 and the SDK for my embedded device. From the command prompt I run:

    configure -platform win32-msvc2008 -xplatform wince70embedded-armv4i-msvc2008
    nmake
    

    Configure runs fine, however, I get some linker errors all related to

    numeric_limits<some type>::min or max
    

    Like this:

    moc_qfilesystemwatcher_polling_p.obj : error LNK2001: unresolved external symbol
     "__declspec(dllimport) public: static __int64 __cdecl std::numeric_limits<__int
    64>::min(void)" (__imp_?min@?$numeric_limits@_J@std@@SA_JXZ)
    moc_qfilesystemwatcher_win_p.obj : error LNK2001: unresolved external symbol "__
    declspec(dllimport) public: static __int64 __cdecl std::numeric_limits<__int64>:
    :min(void)" (__imp_?min@?$numeric_limits@_J@std@@SA_JXZ)
    qmimetypeparser.obj : error LNK2001: unresolved external symbol "__declspec(dlli
    mport) public: static __int64 __cdecl std::numeric_limits<__int64>::min(void)" (
    __imp_?min@?$numeric_limits@_J@std@@SA_JXZ)
    
    

    I have tried to build with

    DEFINES += NOMINMAX
    

    in the qmake.conf files, as I read that this might be related to some windows macro issues. But no luck. Same errors.

    Can someone please give me advice how to solve this?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.