Menu

#31 Make failing on Windows XP (MingW)

Common_Libraries
closed
Target OS (3)
5
2007-01-24
2007-01-20
Anonymous
No

Hi. I'm trying to build Common C++ 1.5.3 in Windows using MingW/MSYS. The configure works fine. When I run make it starts creating the objects until it gets to file.cpp where it generates this error:

g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../w32 -g -O2 -MT file.lo -MD -MP -MF .deps/file.Tpo -c file.cpp -DDLL_EXPORT -DPIC -o .libs/file.o
file.cpp: In function `time_t ost::lastAccessed(const char*)':
file.cpp:1486: error: integer constant is too large for "long" type
file.cpp: In function `time_t ost::lastModified(const char*)':
file.cpp:1512: error: integer constant is too large for "long" type
make[1]: *** [file.lo] Error 1
make[1]: Leaving directory `/home/Mun/commoncpp2-1.5.3/src'
make: *** [all-recursive] Error 1

Thanks.

Discussion

  • David Sugar

    David Sugar - 2007-01-24

    Logged In: YES
    user_id=217
    Originator: NO

    That is because it is using a int64 type, not a long, to compute the timestamp. The #define for SECS_BETWEEN_EPOCHS should probably be maked as "ll"...this will be fixed in 1.5.4.

     
  • David Sugar

    David Sugar - 2007-01-24
    • status: open --> closed
    • assigned_to: nobody --> dyfet
     

Log in to post a comment.