--- Mike Buchanon <buchanon@...> wrote:
> Hi All,
> I'd like to thank everyone for all the help that I got in my
> search for crypt libraries. I ended up using the crypt library
> found at:
> After talking to Stefan(thanks<grin>). We were able to work it all out.
> Apparently, this is a MSVC library. All I had to do was rename it to
> libcrypt.a and then compile in two steps:
> gcc -D__CRYPT_IMPORT__ -c program.c
> gcc -lcrypt program.o -o program.exe
That should be `gcc program.o -lcrypt -o program.exe'. Placement of the
library on the command line matters when it comes to resolving symbols. My
guess is that if you indeed had -lcrypt before program.o on the command line
then program.o used no symbols from -lcrypt.
> I'm not sure why I had to do it in two steps like that, but, if I tried to
> do it all in one gcc line, it would compile, but, the exe file would
> give an error about missing things in the crypt.dll file.
This is strange. It should have worked with a single command.
--- <http://earniesystems.safeshopper.com> ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
--- Minimalist GNU for Windows <http://www.mingw.org/> ---
Do You Yahoo!?
From homework help to love advice, Yahoo! Experts has your answer.