Case-sensitivity for #include with gcc

Yaakov Selkowitz yselkowitz@cygwin.com
Tue Dec 5 00:38:00 GMT 2017


On 2017-12-04 17:14, Laurent Tassan-Got wrote:
>     Just consider the simple C program tstl.c
[snip]
> The compilation with the command
>    gcc -Wall -O2 -o tstl.exe tstl.c
> is successful and the execution as well.
> 
> Now the compilation with:
>    gcc -Wall -O2 -o tstl.exe -I /usr/include/X11   tstl.c
> fails with the following messages:

-I/usr/include/X11 is incorrect, regardless of case (in)sensitivity.
X11 headers are namespaced, meaning that you should e.g. #include
<X11/Xlib.h> instead of <Xlib.h>.  If your code doesn't do that, then
you need to fix it.

-- 
Yaakov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20171205/222b2e9f/attachment.sig>


More information about the Cygwin mailing list