Contenu | Rechercher | Menus

Annonce

L'équipe des administrateurs et modérateurs du forum vous invite à prendre connaissance des nouvelles règles.
En cas de besoin, vous pouvez intervenir dans cette discussion.

Ubuntu 18.04 LTS
Ubuntu-fr propose des clés USB de Ubuntu et toutes ses « saveurs » ainsi qu'un magnifique t-shirt pour cette toute nouvelle version d'Ubuntu !

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 15/09/2018, à 22:18

ludo77

probleme avec installation de graphics.h

Bonsoir,

Je suis sous ubuntu18.04,

J'ai suivi le tuto:https://www.geeksforgeeks.org/add-graphics-h-c-library-gcc-compiler-linux/

lors de l'etape 2 au moment de l'installation de

sudo apt install guile-1.8 guile-1.8-dev

sous ubuntu 18.04 , ils ne sont pas present il n'y a que la version 2 et 2.2
Puis ensuite ;
./configure

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/x86_64-linux-gnu-ld
checking if the linker (/usr/bin/x86_64-linux-gnu-ld) is GNU ld... yes
checking for /usr/bin/x86_64-linux-gnu-ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/x86_64-linux-gnu-ld -m elf_x86_64
checking if the linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for f77 option to produce PIC... -fPIC
checking if f77 PIC flag -fPIC works... yes
checking if f77 supports -c -o file.o... yes
checking whether the f77 linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for gawk... (cached) mawk
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking SDL  ==>  SDL_image library... SDL_image = yes
checking for Guile... yes
checking for rint in -lm... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for putenv... yes
checking for rint... yes
checking for strdup... yes
configure: creating ./config.status
config.status: creating doc/Makefile
config.status: creating doc/man/Makefile
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands

ensuite ; make

Makefile:934: avertissement : surchargement de la recette pour la cible « libgraph.pc »
Makefile:409: avertissement : ancienne recette ignorée pour la cible « libgraph.pc »
make  all-recursive
make[1] : on entre dans le répertoire « /home/ludovic/Téléchargements/libgraph-1.0.2 »
Makefile:934: avertissement : surchargement de la recette pour la cible « libgraph.pc »
Makefile:409: avertissement : ancienne recette ignorée pour la cible « libgraph.pc »
Making all in doc
make[2] : on entre dans le répertoire « /home/ludovic/Téléchargements/libgraph-1.0.2/doc »
Making all in man
make[3] : on entre dans le répertoire « /home/ludovic/Téléchargements/libgraph-1.0.2/doc/man »
make[3]: rien à faire pour « all ».
make[3] : on quitte le répertoire « /home/ludovic/Téléchargements/libgraph-1.0.2/doc/man »
make[3] : on entre dans le répertoire « /home/ludovic/Téléchargements/libgraph-1.0.2/doc »
make[3]: rien à faire pour « all-am ».
make[3] : on quitte le répertoire « /home/ludovic/Téléchargements/libgraph-1.0.2/doc »
make[2] : on quitte le répertoire « /home/ludovic/Téléchargements/libgraph-1.0.2/doc »
make[2] : on entre dans le répertoire « /home/ludovic/Téléchargements/libgraph-1.0.2 »
Makefile:934: avertissement : surchargement de la recette pour la cible « libgraph.pc »
Makefile:409: avertissement : ancienne recette ignorée pour la cible « libgraph.pc »
if /bin/bash ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I.   -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DFONTDIR=\""/usr/local/share/libgraph/Font/"\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT libgraph.lo -MD -MP -MF ".deps/libgraph.Tpo" -c -o libgraph.lo libgraph.c; \
then mv -f ".deps/libgraph.Tpo" ".deps/libgraph.Plo"; else rm -f ".deps/libgraph.Tpo"; exit 1; fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DFONTDIR=\"/usr/local/share/libgraph/Font/\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT libgraph.lo -MD -MP -MF .deps/libgraph.Tpo -c libgraph.c  -fPIC -DPIC -o .libs/libgraph.o
libgraph.c: In function 'initgraph':
libgraph.c:147:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
     asprintf (&iconpath, "%s%s", FONTDIR, "icon.bmp");
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgraph.c: In function 'setfontcolor':
libgraph.c:510:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
  asprintf(&fontpath, "%s%s", FONTDIR, "white.png");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgraph.c:513:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
  asprintf(&fontpath, "%s%s", FONTDIR, "black.png");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgraph.c:516:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
  asprintf(&fontpath, "%s%s", FONTDIR, "red.png");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgraph.c:519:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
  asprintf(&fontpath, "%s%s", FONTDIR, "blue.png");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgraph.c:522:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
  asprintf(&fontpath, "%s%s", FONTDIR, "green.png");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgraph.c:525:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
  asprintf(&fontpath, "%s%s", FONTDIR, "cyan.png");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgraph.c:528:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
  asprintf(&fontpath, "%s%s", FONTDIR, "magenta.png");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgraph.c:531:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
  asprintf(&fontpath, "%s%s", FONTDIR, "yellow.png");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgraph.c:534:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
  asprintf(&fontpath, "%s%s", FONTDIR, "lightgreen.png");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgraph.c:537:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
  asprintf(&fontpath, "%s%s", FONTDIR, "lightblue.png");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgraph.c:540:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
  asprintf(&fontpath, "%s%s", FONTDIR, "lightmagenta.png");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgraph.c:543:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
  asprintf(&fontpath, "%s%s", FONTDIR, "lightred.png");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgraph.c:546:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
  asprintf(&fontpath, "%s%s", FONTDIR, "brown.png");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgraph.c:549:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
  asprintf(&fontpath, "%s%s", FONTDIR, "lightgray.png");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libgraph.c:552:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
  asprintf(&fontpath, "%s%s", FONTDIR, "darkgray.png");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DFONTDIR=\"/usr/local/share/libgraph/Font/\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT libgraph.lo -MD -MP -MF .deps/libgraph.Tpo -c libgraph.c -o libgraph.o >/dev/null 2>&1
if /bin/bash ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I.   -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DFONTDIR=\""/usr/local/share/libgraph/Font/"\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT text.lo -MD -MP -MF ".deps/text.Tpo" -c -o text.lo text.c; \
then mv -f ".deps/text.Tpo" ".deps/text.Plo"; else rm -f ".deps/text.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DFONTDIR=\"/usr/local/share/libgraph/Font/\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT text.lo -MD -MP -MF .deps/text.Tpo -c text.c  -fPIC -DPIC -o .libs/text.o
text.c: In function 'grgetch':
text.c:289:8: warning: implicit declaration of function 'refresh_interrupt' [-Wimplicit-function-declaration]
        refresh_interrupt(0);
        ^~~~~~~~~~~~~~~~~
text.c: In function 'kbhit':
text.c:336:4: warning: implicit declaration of function 'delay' [-Wimplicit-function-declaration]
    delay(100);
    ^~~~~
text.c: In function 'grscanf':
text.c:401:21: warning: passing argument 1 of 'vsscanf' from incompatible pointer type [-Wincompatible-pointer-types]
       num = vsscanf(&template,text,ap);    // Guessing no of arguments
                     ^
In file included from /usr/include/SDL/SDL_stdinc.h:37:0,
                 from /usr/include/SDL/SDL_main.h:26,
                 from /usr/include/SDL/SDL.h:30,
                 from grtext.h:25,
                 from text.c:24:
/usr/include/stdio.h:432:12: note: expected 'const char * restrict' but argument is of type 'char (*)[21]'
 extern int vsscanf (const char *__restrict __s,
            ^~~~~~~
text.c:447:17: warning: passing argument 1 of 'vsscanf' from incompatible pointer type [-Wincompatible-pointer-types]
     if (vsscanf(&input,text,ap) < num) break;
                 ^
In file included from /usr/include/SDL/SDL_stdinc.h:37:0,
                 from /usr/include/SDL/SDL_main.h:26,
                 from /usr/include/SDL/SDL.h:30,
                 from grtext.h:25,
                 from text.c:24:
/usr/include/stdio.h:432:12: note: expected 'const char * restrict' but argument is of type 'char (*)[256]'
 extern int vsscanf (const char *__restrict __s,
            ^~~~~~~
text.c: In function 'grgetch':
text.c:270:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result]
       read(STDIN_FILENO, &c,1);
       ^~~~~~~~~~~~~~~~~~~~~~~~
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DFONTDIR=\"/usr/local/share/libgraph/Font/\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT text.lo -MD -MP -MF .deps/text.Tpo -c text.c -o text.o >/dev/null 2>&1
if /bin/bash ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I.   -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DFONTDIR=\""/usr/local/share/libgraph/Font/"\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT shapes.lo -MD -MP -MF ".deps/shapes.Tpo" -c -o shapes.lo shapes.c; \
then mv -f ".deps/shapes.Tpo" ".deps/shapes.Plo"; else rm -f ".deps/shapes.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DFONTDIR=\"/usr/local/share/libgraph/Font/\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT shapes.lo -MD -MP -MF .deps/shapes.Tpo -c shapes.c  -fPIC -DPIC -o .libs/shapes.o
shapes.c: In function 'cleardevice':
shapes.c:34:5: warning: implicit declaration of function 'setbkcolor'; did you mean 'sector'? [-Wimplicit-function-declaration]
     setbkcolor(getbkcolor());
     ^~~~~~~~~~
     sector
shapes.c:34:16: warning: implicit declaration of function 'getbkcolor'; did you mean 'getchar'? [-Wimplicit-function-declaration]
     setbkcolor(getbkcolor());
                ^~~~~~~~~~
                getchar
shapes.c: In function 'moveto':
shapes.c:55:13: warning: implicit declaration of function 'getmaxx'; did you mean 'getx'? [-Wimplicit-function-declaration]
   CP.x = (x>getmaxx())? getmaxx() : x;
             ^~~~~~~
             getx
shapes.c:56:13: warning: implicit declaration of function 'getmaxy'; did you mean 'gety'? [-Wimplicit-function-declaration]
   CP.y = (y>getmaxy())? getmaxy() : y;
             ^~~~~~~
             gety
shapes.c: In function 'fastline':
shapes.c:76:12: warning: implicit declaration of function 'mapword'; did you mean 'major'? [-Wimplicit-function-declaration]
     x1<x2? mapword(x1, y1, dx) : mapword(x2, y2, dx);
            ^~~~~~~
            major
shapes.c:79:14: warning: implicit declaration of function 'mapvword'; did you mean 'major'? [-Wimplicit-function-declaration]
       y1<y2? mapvword(x1, y1, dy) : mapvword(x2, y2, dy);
              ^~~~~~~~
              major
shapes.c:89:4: warning: implicit declaration of function 'mappixel' [-Wimplicit-function-declaration]
    mappixel(x1, y1);
    ^~~~~~~~
shapes.c: In function 'line':
shapes.c:416:3: warning: implicit declaration of function 'safe_update' [-Wimplicit-function-declaration]
   safe_update(x1-_internal_linestyle.thickness, y1-_internal_linestyle.thickness,
   ^~~~~~~~~~~
shapes.c: In function 'pieslice':
shapes.c:544:33: warning: implicit declaration of function 'getcolor'; did you mean 'getchar'? [-Wimplicit-function-declaration]
   _boundaryfill((int)x, (int)y, getcolor());
                                 ^~~~~~~~
                                 getchar
shapes.c: In function '_boundaryfill':
shapes.c:635:10: warning: implicit declaration of function 'getpixel'; did you mean 'getline'? [-Wimplicit-function-declaration]
   curr = getpixel(x, y);
          ^~~~~~~~
          getline
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DFONTDIR=\"/usr/local/share/libgraph/Font/\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT shapes.lo -MD -MP -MF .deps/shapes.Tpo -c shapes.c -o shapes.o >/dev/null 2>&1
if /bin/bash ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I.   -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DFONTDIR=\""/usr/local/share/libgraph/Font/"\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT polygon.lo -MD -MP -MF ".deps/polygon.Tpo" -c -o polygon.lo polygon.c; \
then mv -f ".deps/polygon.Tpo" ".deps/polygon.Plo"; else rm -f ".deps/polygon.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DFONTDIR=\"/usr/local/share/libgraph/Font/\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT polygon.lo -MD -MP -MF .deps/polygon.Tpo -c polygon.c  -fPIC -DPIC -o .libs/polygon.o
polygon.c: In function 'drawpoly':
polygon.c:40:9: warning: implicit declaration of function 'line'; did you mean 'sinl'? [-Wimplicit-function-declaration]
         line(x1, y1, x2, y2);
         ^~~~
         sinl
polygon.c: In function '_fillpoly':
polygon.c:94:3: warning: implicit declaration of function 'mappixel' [-Wimplicit-function-declaration]
   mappixel(curr->x,i);
   ^~~~~~~~
polygon.c:101:3: warning: implicit declaration of function 'mapword'; did you mean 'major'? [-Wimplicit-function-declaration]
   mapword(curr->x,i,p2->x-curr->x);
   ^~~~~~~
   major
polygon.c: In function 'getpoly':
polygon.c:115:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",num);
   ^~~~~~~~~~~~~~~
polygon.c:120:7: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
       scanf("%d %d",&list[2*i],&list[2*i+1]);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DFONTDIR=\"/usr/local/share/libgraph/Font/\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT polygon.lo -MD -MP -MF .deps/polygon.Tpo -c polygon.c -o polygon.o >/dev/null 2>&1
/bin/bash ./libtool --mode=link gcc -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DFONTDIR=\""/usr/local/share/libgraph/Font/"\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -o libgraph.la -rpath /usr/local/lib -version-info 1:2:0 -export-dynamic libgraph.lo text.lo shapes.lo polygon.lo  -lm -lSDL_image -L/usr/lib/x86_64-linux-gnu -lSDL 
gcc -shared  .libs/libgraph.o .libs/text.o .libs/shapes.o .libs/polygon.o  -lm -lSDL_image -L/usr/lib/x86_64-linux-gnu -lSDL  -Wl,-soname -Wl,libgraph.so.1 -o .libs/libgraph.so.1.0.2
(cd .libs && rm -f libgraph.so.1 && ln -s libgraph.so.1.0.2 libgraph.so.1)
(cd .libs && rm -f libgraph.so && ln -s libgraph.so.1.0.2 libgraph.so)
ar cru .libs/libgraph.a  libgraph.o text.o shapes.o polygon.o
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib .libs/libgraph.a
creating libgraph.la
(cd .libs && rm -f libgraph.la && ln -s ../libgraph.la libgraph.la)
if /bin/bash ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I.   -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DFONTDIR=\""/usr/local/share/libgraph/Font/"\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT guile-libgraph.lo -MD -MP -MF ".deps/guile-libgraph.Tpo" -c -o guile-libgraph.lo guile-libgraph.c; \
then mv -f ".deps/guile-libgraph.Tpo" ".deps/guile-libgraph.Plo"; else rm -f ".deps/guile-libgraph.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DFONTDIR=\"/usr/local/share/libgraph/Font/\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT guile-libgraph.lo -MD -MP -MF .deps/guile-libgraph.Tpo -c guile-libgraph.c  -fPIC -DPIC -o .libs/guile-libgraph.o
guile-libgraph.c:25:10: fatal error: libguile.h: No such file or directory
 #include <libguile.h>
          ^~~~~~~~~~~~
compilation terminated.
Makefile:460: recipe for target 'guile-libgraph.lo' failed
make[2]: *** [guile-libgraph.lo] Error 1
make[2] : on quitte le répertoire « /home/ludovic/Téléchargements/libgraph-1.0.2 »
Makefile:552: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1] : on quitte le répertoire « /home/ludovic/Téléchargements/libgraph-1.0.2 »
Makefile:268: recipe for target 'all' failed
make: *** [all] Error 2

merci pour votre aide

Hors ligne