IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

C++ Discussion :

Mingw32 et libtar compatible


Sujet :

C++

  1. #1
    Membre averti
    Profil pro
    Inscrit en
    Octobre 2004
    Messages
    21
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2004
    Messages : 21
    Par défaut Mingw32 et libtar compatible
    Bonjour,

    Je possède un programme C++ avec une version linux et windows (avec cygwin) qui utilise une compression tar.gz

    Le problème c'est que ma version de libtar n'est pas accepter par mingw32....

    Avez vous un lien ou une version permettant la compression tar compatible avec mingw32 ?

    Merci

  2. #2
    Expert confirmé
    Avatar de Swoög
    Profil pro
    Inscrit en
    Janvier 2003
    Messages
    6 045
    Détails du profil
    Informations personnelles :
    Âge : 37
    Localisation : France

    Informations forums :
    Inscription : Janvier 2003
    Messages : 6 045
    Par défaut
    Salut !

    Il ne semble y avoir qu'une seule version de libtar : http://www.feep.net/libtar/

    Que veux-tu dire par "pas accepter par mingw32..." ?
    Rédacteur "éclectique" (XML, Cours PHP, Cours JavaScript, IRC, Web...)
    Les Règles du Forum - Mon Site Web sur DVP.com (Développement Web, PHP, (X)HTML/CSS, SQL, XML, IRC)
    je ne répondrai à aucune question technique via MP, MSN ou Skype : les Forums sont là pour ça !!! Merci de me demander avant de m'ajouter à vos contacts sinon je bloque !
    pensez à la balise [ code ] (bouton #) et au tag :resolu: (en bas)

  3. #3
    Membre averti
    Profil pro
    Inscrit en
    Octobre 2004
    Messages
    21
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2004
    Messages : 21
    Par défaut
    Ben visiblement Mingw32 ne supporte pas toute l'API *nix.

    Je n'arrive pas à l'utiliser car libtar n'a pas pu se compiler
    dans Mingw32 (elle utilise certaines fonctions spécifiques à *nix).

    Je recherche donc une librairie de compression pouvant géré les tar.gz (compression/decompression) et qui soit compatible avec mingw32.
    Ou mieux que quelqu'un ai deja utiliser.
    J'utilise la version cité dans le message plus haut.

    J'ai mon programme en C++ écrit sous linux.
    La version linux fonctionne parfaitement mais celle pour windows bug (uniquement sous XP car sous 2000 sa fonctionne aussi nickel).
    Pour le moment je compile avec cygwin pour la version windows mais avec une veille version de cygwin.
    La dernière me donne une erreur dans le header pthread.h...

    Je souhaite donc compiler mon programme avec mingw32 pour ne plus avoir les fameuses DLLs de cygwin.

    Si vous avez des conseils, liens ou avis je suis preneur.

  4. #4
    Membre averti
    Profil pro
    Inscrit en
    Octobre 2004
    Messages
    21
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2004
    Messages : 21
    Par défaut
    Quand je compile libtar sous mingw32 (quelque soit la version) j'obtiens :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
     
    $ ./configure && make && make install
    checking for epkg... no
    checking for mkencap... no
    checking for gcc... gcc
    checking for C compiler default output... a.exe
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables... .exe
    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 strlcpy... no
    checking for strsep... no
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ANSI C... (cached) none needed
    checking for ranlib... ranlib
    checking for a BSD-compatible install... /bin/install -c
    checking whether ln -s works... yes
    checking whether make sets $(MAKE)... yes
    checking how to run the C preprocessor... gcc -E
    checking for egrep... grep -E
    checking for AIX... no
    checking for an ANSI C-conforming const... yes
    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 for unistd.h... (cached) yes
    checking whether sys/types.h defines makedev... no
    checking sys/mkdev.h usability... no
    checking sys/mkdev.h presence... no
    checking for sys/mkdev.h... no
    checking sys/sysmacros.h usability... no
    checking sys/sysmacros.h presence... no
    checking for sys/sysmacros.h... no
    checking for major_t... no
    checking for minor_t... no
    checking for dev_t... yes
    checking for socklen_t... no
    checking for uint64_t... yes
    checking for mode_t... yes
    checking for off_t... yes
    checking for size_t... yes
    checking for uid_t in sys/types.h... no
    checking for nlink_t... no
    checking libgen.h usability... no
    checking libgen.h presence... no
    checking for libgen.h... no
    checking for working basename... no
    checking for libgen.h... (cached) no
    checking for working dirname... no
    checking fnmatch.h usability... no
    checking fnmatch.h presence... no
    checking for fnmatch.h... no
    checking ctype.h usability... yes
    checking ctype.h presence... yes
    checking for ctype.h... yes
    checking for lchown... no
    checking whether makedev expects three arguments... no
    checking for working snprintf... no
    checking for strdup... yes
    checking for strftime... yes
    checking for strlcpy... (cached) no
    checking for strmode... no
    checking for strsep... (cached) no
    checking for gzread in -lz... no
    configure: creating ./config.status
    config.status: creating listhash/libtar_listhash.h
    config.status: creating listhash/libtar_list.c
    config.status: creating listhash/libtar_hash.c
    config.status: creating listhash/libtar_list_new.3
    config.status: creating listhash/libtar_hash_new.3
    config.status: creating Makefile
    config.status: creating lib/Makefile
    config.status: creating libtar/Makefile
    config.status: creating doc/Makefile
    config.status: creating config.h
    for n in lib libtar doc; do \
            ( cd $n && make all  ) || exit 1; \
    done
    make[1]: Entering directory `/home/test/libtar/lib'
    gcc -g -O2 -I. -I.. -I. -I../compat -I../listhash  -c -o append.o append.c
    In file included from ./internal.h:16,
                     from append.c:13:
    ./libtar.h:18:17: tar.h: No such file or directory
    append.c: In function `tar_append_file':
    append.c:124: error: `LNKTYPE' undeclared (first use in this function)
    append.c:124: error: (Each undeclared identifier is reported only once
    append.c:124: error: for each function it appears in.)
    append.c:144: error: `SYMTYPE' undeclared (first use in this function)
    append.c:179: error: `REGTYPE' undeclared (first use in this function)
    append.c:179: error: `AREGTYPE' undeclared (first use in this function)
    append.c:179: error: `CONTTYPE' undeclared (first use in this function)
    make[1]: *** [append.o] Error 1
    make[1]: Leaving directory `/home/test/libtar/lib'
    make: *** [all] Error 1
    Une solution ?

Discussions similaires

  1. Thread et AfxMessageBox compatible???
    Par poca10 dans le forum MFC
    Réponses: 3
    Dernier message: 28/01/2004, 13h26
  2. Une seule anim compatible PC et Mac ?
    Par carlito dans le forum Flash
    Réponses: 7
    Dernier message: 18/12/2003, 17h11
  3. Eclipse compatible mandrake 9.1 ?
    Par ronaldgis dans le forum Eclipse Java
    Réponses: 2
    Dernier message: 06/12/2003, 20h18
  4. Commande fopen avec Mingw32
    Par Blitzz dans le forum Autres éditeurs
    Réponses: 5
    Dernier message: 29/10/2003, 11h07
  5. [TP]Editeur de fichiers HLP compatibles 16 bits
    Par Alcatîz dans le forum Turbo Pascal
    Réponses: 3
    Dernier message: 08/07/2003, 21h03

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo