Bonjours,
Malgré de nombre recherche sur le net, je n'arrive pas à utiliser une bibliothèque (zlib) sous eclipse.
Voila où j'en suis:
j'ai installer la lib comme indiqué dans le readme:
Je comprend le 3. Install "libzdll.a" into the LIB directory. comme placer le fichier "libzdll.a" dans le dossier lib de mingwUsing ZLIB1.DLL with gcc/MinGW
==============================
1. Install the supplied header files "zlib.h" and "zconf.h"
into the INCLUDE directory.
2. Copy the supplied library file "zdll.lib" to "libzdll.a":
cp lib/zdll.lib lib/libzdll.a
OR
2' Build the import library from the supplied "zlib.def":
dlltool -D zlib1.dll -d lib/zlib.def -l lib/libzdll.a
3. Install "libzdll.a" into the LIB directory.
4. Add "libzdll.a" to your project, or use the -lzdll option.
Une fois cela fait dans eclipse propriétés du projet -> C/C++ General-> Path and Symbols -> dans l'onglet Libraries j'ajoute C:\MinGW\lib\libzdll.a
Comment une fois arrivé là, faire appelle aux fonctions de la lib. J'ai essayé #include <zlib.h> et #include "zlib.h" (je ne maîtrise pas encore la différence entre les deux ) le compilateur m'informe qu'il ne connait pas ces fichiers
Partager