This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Case-sensitivity for #include with gcc


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

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]