[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] Problemer med lænkning [SOLVED ]



Det havde åbenbart betydning i hvilken rækkefølge argumenterne til
lænkeren blev skrevet.
Det var ikke noget problem at compile:

$ cc -c `pkg-config --cflags libssl` -o hash.o hash.c
$

Men denne lænkning gik galt:
$ cc -o hash `pkg-config --libs libssl` hash.o
hash.o: In function `check_pass':
hash.c:(.text+0x31): undefined reference to `SHA256_Init'
hash.c:(.text+0x4f): undefined reference to `SHA256_Update'
hash.c:(.text+0x65): undefined reference to `SHA256_Final'
collect2: error: ld returned 1 exit status
$

Men denne gik godt:
$ cc -o hash hash.o `pkg-config --libs libssl`
$

Eneste forskel er, at jeg flyttede objektfilen hen foran...hvorfor det
har en betydning ved jeg ikke.


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2012-12-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *