Re: Fwd: help in the usage of compiling c files

Keith Marshall <[email protected]> Thu, 24 Sep 2020 21:20:48 +0100
Newsgroups gmane.comp.gnu.mingw.user
Organization MinGW.org Project
Message-ID <[email protected]>
On 24/09/2020 17:44, Aileen Sengupta wrote:
> 
> ---------- Forwarded message ---------
> From: *Aileen Sengupta* <[email protected]
> <mailto:[email protected]>>
> Date: Mon, 21 Sep 2020, 01:18
> Subject: help in the usage of compiling c files
> To: <[email protected] <mailto:[email protected]>>
> 
> I have recently installed the MinGW and I am trying to run the following
> command 
> gcc -o encoder jpegll_enc.c idc.h readimage.c image_size.c and I get the
> following error:

Well, the first obvious error is the specification of idc.h, on the
command line.  That file should be included, by

   #include "idc.h"

in the C source files which need it; you *do not*, (and *should not*),
specify it on the gcc command line...

> image.png

And your other errors are clearly diagnosed in that embedded image; the
error messages even tell you *exactly* what you need to do to fix them!

-- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEwZ7AGBVH3lDh1I9TwK02xjR+Wj8FAl9s/6EACgkQwK02xjR+
Wj/REQ//SrhuCOz6mardhueg0f/ar62Vo26L6t+9Msr3waQE78tHv/YoUSPQjFes
hyLvgfhD07xvNHa4HBuHUer7/3yKOf8fRAJ0xt/4mTbs/958QKeRYB8MM+M5MLQt
rQzTGzLOer9W2/BWKd3NDvuGoipOTBck8R12m5d9/e9XwyXENaBehEGaw41cdRUg
mWjcinQX5SRs0TcMZN/EvnoJRMsjOaD+1rVKTJnekbSSTcTadrPt8GZX7loOax0t
1ppyMDHBbgKk6W/FEnv3+iplVqwhHiPrBGBYqRjd8bVEpsWyLiqTMNUvjMCBZvJg
kmMRxxDFCq0sbce6EKIuYrtgKU9Qm+WOvKqgpteScdj5eZssBoQoBIiPNkUUJXw5
MJjXDS2K/m4wuSDwsoWNnRUWUfA50wMY3SGXy38cGQEbvLB3nwnEd+0B50AMpG2W
uVb7gP0nwJbb2ZyA8YJ371Bx/3wMVA99uYaK2j7B5HHZS/z5K8YlSmAf4sr1yb3i
EDjbeemPjUIgPlJj3IZRwTbQOMEo10F0Wp2t573Wko2DaruVX5QuzTOxG+vL4FAR
pmJvXxFLBLtWTqzaPVouEN0yZHiWeHZkDwvoXc9t4uIHng48v8eKE4trIfdE+hAU
J38RokHy5VRLxCKuwkWNcnzEhjPypbXDTOYdUR6Ehu/Y6vzWMek=
=nUhg
-----END PGP SIGNATURE-----