Exemple source client FTP avec ftplib

k1koo Messages postés 7 Date d'inscription lundi 3 mars 2008 Statut Membre Dernière intervention 26 mai 2008 - 26 mai 2008 à 14:35
k1koo Messages postés 7 Date d'inscription lundi 3 mars 2008 Statut Membre Dernière intervention 26 mai 2008 - 26 mai 2008 à 14:36
Je cherche une source ou un exemple de l'utilisation de la librairie ftplib sous linux

#include <stdio.h>

#include <stdlib.h>

#include "ftplib.h" //http://nbpfaus.net/~pfau/ftplib/

#pragma comment(lib,"wsock32.lib") // linbk lib wsock32.lib sous Visual C++, adpater.


int main()

{

FtpInit();


return 0;

}

g++ -o test main.o

main.o: In function `main':

main.cpp:(.text+0x12): undefined reference to `FtpInit'

collect2: ld a retourné 1 code d'état d'exécution

make: *** [test] Erreur 1

</stdlib.h></stdio.h>

2 réponses

k1koo Messages postés 7 Date d'inscription lundi 3 mars 2008 Statut Membre Dernière intervention 26 mai 2008
26 mai 2008 à 14:36
g++ -o test main.o
main.o: In function `main':
main.cpp:(.text+0x12): undefined reference to `FtpInit'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [test] Erreur 1
0
k1koo Messages postés 7 Date d'inscription lundi 3 mars 2008 Statut Membre Dernière intervention 26 mai 2008
26 mai 2008 à 14:36
#include <stdio.h>
#include <stdlib.h>
#include "ftplib.h" //http://nbpfaus.net/~pfau/ftplib/
#pragma comment(lib,"wsock32.lib") // linbk lib wsock32.lib sous Visual C++, adpater.

int main()
{
FtpInit();

return 0;
}
</stdlib.h></stdio.h>
0
Rejoignez-nous