Wince questions

Help
boeha
2010-04-09
2013-04-08
  • boeha
    boeha
    2010-04-09

    I searched for the internet for a gui library. I found also qt and vxwidget, but I think if you see at memory use and such things, smartwin looks very promosing.

    I first build the library's and tested the example on the host computer. This is working fine (windows xp and vs2005)

    I have read about some compiler issues for windows CE in the doxygen and put in interlocked.hpp the following text:

    #ifndef WINCE
    extern "C" long __cdecl _InterlockedIncrement( long volatile * );
    extern "C" long __cdecl _InterlockedDecrement( long volatile * );
    #endif

    But it still won't compile.

    Does anyone know how this problem can be fixed ?

    already thanks!

     
  • andrew7
    andrew7
    2010-04-09

    What were the compile errors ?

     
  • boeha
    boeha
    2010-04-09

    I have compiled it know but the compiler error with the old problems where±

    1>Deleting intermediate and output files for project 'SmartWinDevices', configuration 'Debug|Pocket PC 2003 (ARMV4)'
    1>Compiling…
    1>Application.cpp
    1>C:\smartwin\include\boost/detail/interlocked.hpp(42) : error C2169: '_InterlockedIncrement' : intrinsic function, cannot be defined
    1>C:\smartwin\include\boost/detail/interlocked.hpp(47) : error C2169: '_InterlockedDecrement' : intrinsic function, cannot be defined
    1>C:\smartwin\include\boost/detail/sp_counted_base_w32.hpp(72) : error C3861: '_InterlockedIncrement': identifier not found
    1>C:\smartwin\include\boost/detail/sp_counted_base_w32.hpp(87) : error C3861: '_InterlockedDecrement': identifier not found
    1>C:\smartwin\include\boost/detail/sp_counted_base_w32.hpp(96) : error C3861: '_InterlockedIncrement': identifier not found
    1>C:\smartwin\include\boost/detail/sp_counted_base_w32.hpp(101) : error C3861: '_InterlockedDecrement': identifier not found

    This for each cpp file where these function are in to.

    Later made the following changes in interlocked.hpp

    #elif defined( BOOST_MSVC ) || defined( BOOST_INTEL_WIN )

    //these define's for compiling wince
    # define BOOST_INTERLOCKED_INCREMENT InterlockedIncrement
    # define BOOST_INTERLOCKED_DECREMENT InterlockedDecrement
    # define BOOST_INTERLOCKED_COMPARE_EXCHANGE InterlockedCompareExchange

    /*in comment for compiling wince
    extern "C" long __cdecl _InterlockedIncrement( long volatile * );
    extern "C" long __cdecl _InterlockedDecrement( long volatile * );
    extern "C" long __cdecl _InterlockedCompareExchange( long volatile *, long, long );
    */

    and

    /*these define's in comment for compiling wince
    # define BOOST_INTERLOCKED_INCREMENT _InterlockedIncrement
    # define BOOST_INTERLOCKED_DECREMENT _InterlockedDecrement
    # define BOOST_INTERLOCKED_COMPARE_EXCHANGE _InterlockedCompareExchange
    */

    Now it was compiling well.

    I know try to make library files for my wince board. This one
    http://www.karo-electronics.com/tx25.html

    You will hear from if it succeed or not