Fpermissive Cmake

  • This topic has 1 reply, 2 voices, and was last updated 4 years, 4 months ago by .
  • Hi Hugo,

    I would like to come back to the problem.
    Namely, the compilation error appears after 53%
    (this is the OGl version).
    I use the -fpermissive, however, it does not help.
    I downloaded the sofa-master yesterday, with the commit #110
    I use gcc-4.8,

    These are the switches:

    cd build_ogl
    /users/kdm/ewpostek/soffa/cmake_tmp/cmake-3.2.2-Linux-i386/bin/cmake -DCMAKE_CXX_FLAGS:STRING=’-fpermissive’ -DCMAKE_C_FLAGS:STRING=’-fpermissive’ -DCMAKE_CXX_FLAGS_DEBUG:STRING=’-fpermissive’ -DBoost_DIR:PATH=/apl/tryton/boost/gcc/1.62 -DBoost_INCLUDE_DIR:PATH=/apl/tryton/boost/gcc/1.62/include -DBoost_LIBRARY_DIR:PATH=/apl/tryton/boost/gcc/1.62/lib ./sofa-master

    [ 53%] Building CXX object SofaGeneral/SofaOpenglVisual/CMakeFiles/SofaOpenglVisual.dir/OglAttribute.cpp.o
    In file included from /users/kdm/ewpostek/sofa_last/sofa-master/modules/SofaOpenglVisual/OglAttribute.cpp:25:0:
    /users/kdm/ewpostek/sofa_last/sofa-master/SofaGeneral/./modules/SofaOpenglVisual/OglAttribute.inl: In member function ‘void sofa::component::visualmodel::OglAttribute<size, type, DataTypes>::enable()’:
    /users/kdm/ewpostek/sofa_last/sofa-master/SofaGeneral/./modules/SofaOpenglVisual/OglAttribute.inl:195:70: warning: there are no arguments to ‘glVertexAttribLPointer’ that depend on a template parameter, so a declaration of ‘glVertexAttribLPointer’ must be available [-fpermissive]
    glVertexAttribLPointer(_index, size, type, 0, (char*)NULL + 0);

    The linux:
    The linux:
    Linux version 2.6.32-504.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) ) #1 SMP Wed Oct 15 04:27:16 UTC 2014

    best regards,

    Hi Elek,

    Are you compiling using the flag SOFA_NO_OPENGL=1?

    If yes, what plugin did you activate?
    Does any of those plugins have a dependency to SofaOpenglVisual (or related module)?

    Speed dial website login

    As you can see from the continuous integration of the PR #110, the compilation ran successfully.


C++ Fpermissive Error

Fpermissive Cmake

Fpermissive Cmake Install

Fpermissive CmakeFlags

Head tracking software for MS Windows, Linux, and Apple OSX - opentrack/opentrack. How to detect MSVC 2015 update 3 (= presence of /fpermissive-). Hello, A question that will hopefully have a quick/easy answer: I'd like to detect when the MSVC /fpermissive- (yes, that's a dash. CMake is an open-source, cross-platform family of tools designed to build, test and package software. CMake is used to control the software compilation process using simple platform and compiler independent configuration files, and generate native makefiles and workspaces that can be used in the compiler environment of your choice. This is part of a CMake test. There’s no problem if the test fails. This is not part of Avogadro, the script is simply trying to figure out features of your compiler and development environment. What version of CMake are you using? What version of GCC are you using? Can you compile other C programs? On a high level, encoding more Clang specifics into the tbaa spec and using it as heuristics seems a bit unfortunate to me, as it may pessimize frontends that for various reasons cannot use tbaa, especially because the additional information does not seem tbaa specific to me. I understand it is very convenient to use tbaa in this case, but I am worried about non-Clang frontends once this.