« Return to Thread: Inconsistent Compilation

Inconsistent Compilation

by GlassEyeSlim :: Rate this Message:

Reply to Author | View in Thread

With the following include statement and the associated header file in the same directory as the .c file:

#include "stdio.h"

gcc will compile successfully using the following

$gcc -x none file.c

With the following include statement and the associated header file in /usr/include

#include <stdio.h"

gcc will not compile the file using any of the following

$gcc -x c file.c
$gcc -x none file.c
$gcc -std=c89 file.c

GES

 « Return to Thread: Inconsistent Compilation