I'm trying to run the GCC precompiler on Java code by issuing the following command: "gcc -D YES -E -x c -o YesNo.java _YesNo.java". The gcc precompiler adds some extra stuff/info in the beginning of the file, though, as can be seen below. How do I instruct the precompiler not to create such outputs so I can compile the output of the precompiler directly without making any modifications? Thanks in advance!
Java input to GCC:
public class YesNo
{
public static void main(String[] args)
{
#ifdef YES
System.out.println("YES");
#else
System.out.println("NO");
#endif
}
}
GCC precompiler output:
# 1 "Slask.pjava"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "Slask.pjava"
public class YesNo
{
public static void main(String[] args)
{
System.out.println("YES");
}
}