Hi all.
I'm trying to compile chntpw on redhat 9.0
I'm a little rusty when it comes to the linking part.
The install file says that openssl is required and I have this (rpm -q openssl-devel)
Quote:
If make goes well, you should have a single binary
called 'chntpw', dynamically linked with the clib,
statically with the ssl library.
|
All is not going well

as I can't find the correct command in the gcc manual to link with this file. I have tried the following commands (and others) with no success: The second line in each case is the error message. I have confirmed that the library "libssl.a" is indeed in that directory.
Code:
gcc ntreg.o chntpw.o -l /usr/lib/libssl.a -o chntpw
/usr/bin/ld: cannot find -l/usr/lib/libssl.a
gcc ntreg.o chntpw.o -L/usr/lib -l libssl -o chntpw
/usr/bin/ld: cannot find -llibssl
Could someone please tell me what is the difference between static and dynamic linking and/or point me towards some resources that I can read.
And what command should I use to link these files
Thanks