GCJ Linking Error: Says error: undefined reference to 'main' collect2: error: ld returned 1 exit status
问题 The code is this: public class Thingy { public static void main(String[] args) { System.out.println(Math.random()); } } So, absolutely NOT an unusual case, just a basic example. When I try to use GCJ's javac implementation to make bytecode instead of the OpenJDK one, it works fine. neil@neil-Inspiron-M5030:~/javastuff$ javac Thingy.java neil@neil-Inspiron-M5030:~/javastuff$ java Thingy 0.2794511843566371 But when I try to get GCJ to make native code, I get that linker error. If you want, I