我试图在PintOS makefile上运行make,但我一直得到未定义的引用"floor"错误.makefile在下面.我用gcc 4.6.1运行Ubuntu 11.10.任何帮助表示赞赏.
all: setitimer-helper squish-pty squish-unix
CC = gcc
CFLAGS = -Wall -W
LDFLAGS = -lm
setitimer-helper: setitimer-helper.o
squish-pty: squish-pty.o
squish-unix: squish-unix.o
clean:
rm -f *.o setitimer-helper squish-pty squish-unix
Run Code Online (Sandbox Code Playgroud)
〜
我试图将树包用于TCL,但我根本找不到任何文档.当试图从http://tcllib.sourceforge.net/doc/struct_tree.html运行示例时,我收到错误
can't find package struct::tree
Run Code Online (Sandbox Code Playgroud)
谁能告诉我如何将它包含在tcl 8.5中?
我正在编写一个小的java代码来生成随机值:
import java.util.Random;
public class Rann {
static Random rand;
public static void main(String args[]){
int i;
for(i=0;i<15;i++)
System.out.println(rand.nextInt(7));
}
}
Run Code Online (Sandbox Code Playgroud)
这给出了一个错误:
Exception in thread "main" java.lang.NullPointerException
at Rann.main(Rann.java:7)
Run Code Online (Sandbox Code Playgroud)
任何帮助将受到高度赞赏.这是在LeJOS中生成随机值的首选方法吗?