Nicosss Le programme est bon puisqu’il a été compilé sans erreurs en dehors de visual studio code comme je l’ai cité précédemment.
Le problème vient à mon avis de la configuration sous visual.
Il faut que je donne les bons chemins je pense ou bien ceux qui l’ont été par défaut sont éronés.
Je suis allé sur ce lien pour m’aider mais je suis un peu bloqué pour donner les bons chemins dans intellisense.
Docs linux Studio
Quand je tape la version de gcc sous terminal linux j’ai ça:
gcc -v
Utilisation des specs internes.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Cible : x86_64-redhat-linux
Configuré avec: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-11.3.1-20220421/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Modèle de thread: posix
Algorithmes de compression LTO supportés: zlib zstd
gcc version 11.3.1 20220421 (Red Hat 11.3.1-2) (GCC)