[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: C source



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Jul 15, 2016 at 11:34:38AM +0200, Pol Hallen wrote:
> Hi, all
> 
> I've this error:
> 
> fatal error: md5.h: No such file or directory
> compilation terminated.
> 
> when I compiled a source C
> 
> gcc source.c
> 
> [...]
> #include <string.h>
> #include <stdlib.h>
> #include <stdio.h>
> #include "md5.h"
> [...]
> 
> I've openssl-dev installed, but I don't understand how to audit this error..

Hmmm. I can't find a package named "openssl-dev" in Debian. What distro are
you using? How is the package called really?

As your includes are written above, the C compiler would look for a file
md5.h in the current compilation directory: most probably there isn't
one, since whatever package you installed will put it in a standard
system location, typically under /usr/include.

You can find that out by

  find /usr/include -name md5.h

Let's assume you get:

  /usr/include/openssl/md5.h

... then you'd have to tell your C compiler

  #include <openssl/md5.h>

(there are many other ways to steer that, like the -I command line
option, but let's start with this).

regards

[1] https://packages.debian.org/search?keywords=openssl-dev&searchon=names&suite=all&section=all

- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAleIstkACgkQBcgs9XrR2kYo1wCcC/eqRU9M+YDQnsXggqC45FEr
9OwAnjHs8mX+vozUSpnB9upyjZb2TgqB
=+NJu
-----END PGP SIGNATURE-----


Reply to: