[so] [Tema 2][Linux] Apelare functii decrypt_*
Dan Lincan
dan.lincan at gmail.com
Tue Mar 27 16:01:55 EEST 2012
2012/3/27 Bogdan Ivanov <ivn_bogdan at yahoo.com>:
> Salut,
>
> Nu reusesc sa apelez functiile de decriptare din server, cel mai probabil
> pentru ca nu incarc libraria cum trebuie.
> Eu fac asa: cu include "crypto.h" in server il compilez cu:
> gcc -Wall -lrt -o server server.o common.o
> caz in care obtin: server.c:(.text+0x1e9): undefined reference to
> `decrypt_base64'
>
> probabil ca ar trebui inclusa libraria la compilare nu? Folosind flag-ul -l
> Am incercat si cu:
>
> gcc -Wall -lrt -llibcrypto -o gateway gateway.o common.o dar:
> /usr/bin/ld: cannot find -llibcrypto
> (daca are vreo importanta din terminarul din care rulez make am setat
> variabila de mediu LD_LIBRARY_PATH)
>
> Cum trebuie incarcata libraria corect?
> Multumesc,
> Bogdan
>
> _______________________________________________
> http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii
Adauga -L. cand compilezi
More information about the so
mailing list