amirale32@amir-master:~$ cd ..
amirale32@amir-master:/home$ cd ..
amirale32@amir-master:/$ sudo dpkg -L crypto
dpkg-query: package 'crypto' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.

amirale32@amir-master:/$ pkg-config --list-all | grep crypto
openssl                        OpenSSL - Secure Sockets Layer and
cryptography libraries and tools
libssl                         OpenSSL - Secure Sockets Layer and
cryptography libraries
libcrypto++                    libcrypto++ - General purpose cryptographic
shared library
libcrypto                      OpenSSL-libcrypto - OpenSSL cryptography
library
amirale32@amir-master:/$

On Fri, Sep 19, 2014 at 8:50 PM, Amir Reda <amirale...@gmail.com> wrote:

> thx allot for reply
> i have looked at the directory usr/lib i found the folder ssl but i
> couldn't find the folder of crypto
> so what can i do????
>
> On Fri, Sep 19, 2014 at 7:46 PM, Jeffrey Walton <noloa...@gmail.com>
> wrote:
>
>> On Fri, Sep 19, 2014 at 3:33 AM, Amir Reda <amirale...@gmail.com> wrote:
>> > thx allot for quick reply
>> > i have modified the library name to ssl but i have the same problem
>> with the
>> > linker
>> >
>> > error is
>> >
>> > Building file: ../src/certificate.cpp
>> > Invoking: Cross G++ Compiler
>> > g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/certificate.d"
>> > -MT"src/certificate.d" -o "src/certificate.o" "../src/certificate.cpp"
>> > Finished building: ../src/certificate.cpp
>> >
>> > Building file: ../src/client.cc
>> > Invoking: Cross G++ Compiler
>> > g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/client.d"
>> > -MT"src/client.d" -o "src/client.o" "../src/client.cc"
>> > Finished building: ../src/client.cc
>> >
>> > Building target: certificate
>> > Invoking: Cross G++ Linker
>> > g++ -L/usr/include/openssl -o "certificate"  ./src/certificate.o
>> > ./src/client.o ./src/server.o   -lssl
>> > ./src/client.o: In function `Client::Client()':
>> > /home/amirale32/workspace/certificate/Debug/../src/client.cc:12:
>> undefined
>> > reference to `X509_REQ_new'
>> > ...
>>
>> I believe that should be:
>>
>>     g++ -L/usr/lib
>>
>> '-L' is for library paths, not include paths.
>>
>> Additionally, you need to include both libraries in your linker
>> invocation. So it should be:
>>
>>     g++ *.o -o myprogr.exe -L/usr/lib -lssl -lcrypto
>>
>> 'ld' is a single pass linker, so the order of '-lss -lcrypto' matters.
>>
>> See the ld(1) man page for details. http://linux.die.net/man/1/ld.
>> ______________________________________________________________________
>> OpenSSL Project                                 http://www.openssl.org
>> User Support Mailing List                    openssl-users@openssl.org
>> Automated List Manager                           majord...@openssl.org
>>
>
>
>
> --
> Warmest regards and best wishes for a good health,*urs sincerely *
> *mero*
>



-- 
Warmest regards and best wishes for a good health,*urs sincerely *
*mero*

Reply via email to