编译报错:
root@ye:/home/ye/Raccoon# gcc -lxenlight -lxenstore -g a.c store.c read.c -o a
/usr/bin/ld: /tmp/ccd7eAsA.o: undefined reference to symbol 'xtl_createlogger_stdiostream'
//usr/local/lib/libxenctrl.so.4.6: error adding symbols: DSO missing from command line
collect2: ld returned 1 exit status
解决方法:
添加libxenctrl库路径一起编辑即可:
gcc -lxenlight -lxenstore -lxenctrl -g a.c store.c read.c -o a