[so] [Tema 2][Linux] Apelare functii decrypt_*
Bogdan Ivanov
ivn_bogdan at yahoo.com
Tue Mar 27 15:33:46 EEST 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20120327/dc2e443d/attachment-0001.htm>
More information about the so
mailing list