bonjours, je sais pas vraiment si c'est ici que je dois poster mais bon.
voila mon probleme. j'essais de jouer un peu avec opengl en suivant des tutos, et j'ai une erreure a la compilation:comme ca m'etonne je fais un locate cmath|grep "/usr/include" et j'aigcc -Wall -c -g main.c
In file included from /usr/include/glm/glm.hpp:78:0,
from main.c:9:
/usr/include/glm/core/_fixes.hpp:29:17: fatal error: cmath: No such file or directory
compilation terminated.j'ecris donc un petit prog simple/usr/include/boost/compatibility/cpp_c_headers/cmath
/usr/include/boost/config/no_tr1/cmath.hpp
/usr/include/boost/phoenix/stl/cmath.hpp
/usr/include/boost/tr1/cmath.hpp
/usr/include/boost/tr1/tr1/cmath
/usr/include/boost/tr1/tr1/sun/cmath.SUNWCCh
/usr/include/boost/units/cmath.hpp
/usr/include/boost/units/detail/cmath_impl.hpp
/usr/include/c++/4.7/cmath
/usr/include/c++/4.7/tr1/cmath
/usr/include/x86_64-linux-gnu/bits/cmathcalls.hla compilation passe aussi bien avec gcc que g++
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 #include <cmath> int main(int argc,char **argv) { return 0; }
voici gcc -vbref je ne comprend pas pourquoi la compilation quand je fais include <glm/glm.hpp> me dit ne pas trouver cmath qui est bien sur le system.Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-5)
merci de m'eclairer un peu par ce que la, je suis dans le noir









Répondre avec citation





Partager