Menu

size_t compilation error ubuntu

Help
2011-11-29
2012-09-14
  • Nobody/Anonymous

    Greetings all,

    I have just downloaded waffles.

    I'm working on Ubuntu 11.10 (oneiric) and I have all the necessary dependency
    packages (g++, make, libpng12-dev).

    I did sudo make install on src folder, and everything went right until I got
    compilation errors on GRand.h:

    GRand.h: 60:2: error: 'size_t' does not name a type

    GRand.h: 118:34: error: 'size_t' has not been declared

    (...)

    make: *** Error 2

    Can anyone tell me why this is happening and how can I solve this?

    Thanks in advance

    JD

     
  • Mike Gashler

    Mike Gashler - 2011-11-29

    This issue appeared with g++ 4.6 (and was first reported in the forum thread
    dated 2011-10-09). Possible work-arounds include:

    1- Get the latest code from our Subversion repository (see http://waffles.sou
    rceforge.net/tutorial/subversion.html),
    or

    2- Manually add "#include <sys types.h="">" to GRand.h, GRegion.h, GText.h, and
    add "#include <cstddef>" to GPriorityQueue.h.</cstddef></sys>

    I'm still developing on Natty which uses g++ 4.5.2, but I'll be sure to
    upgrade to g++ 4.6 before I release the next version of Waffles.

     
  • Nobody/Anonymous

    A new version of Waffles was just released to fix this issue.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.