Skip to content

gcc 4.7 #39

@syl-00101001

Description

@syl-00101001

on newer gcc (i'm using 4.7.3 on ubuntu 13.04) we need to specify
-Wno-maybe-uninitialized -Wno-strict-aliasing -Wno-strict-overflow -Wno-unused-result
in libgdx-cpp/CMakeLists.txt

to work around a bug in box2D, StillModel.cpp, Buffer.hpp, agg_gsv_text.cpp
and get it built

Also ShaderProgram.cpp needed to include "gdx-cpp/internal/gl" to have GL_FALSE

(sorry i've lost the compile trace for box2D and Stillmodel)

Buffer.hpp:163:9: erreur: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]

agg_gsv_text.cpp:557:53: erreur: ignoring return value of ‘size_t fread(void_, size_t, size_t, FILE_)’, declared with attribute warn_unused_result [-Werror=unused-result]

I think it may get fixed in the source, instead of telling off the compiler, but i dunno.

Finally, on my system some packages names :
libvorbisfile3 (no "-dev" for this one, this must be an error in the wiki, or for another distro)
libsdl1.2-dev
libsdl1.2debian
libopenal1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions