Open BeBeMo opened 5 years ago
When compiling program using g++ version 5.4.0 , I get the undefined reference errors using the following command . g++ -o test test.cpp -I ../../slua/include/ -L ../../slua/lib/ ../../slua/lib/linux/liblua.a
g++ -o test test.cpp -I ../../slua/include/ -L ../../slua/lib/ ../../slua/lib/linux/liblua.a
The solution is add -ldlflag at the end of command , like
-ldl
g++ -o test test.cpp -I ../../slua/include/ -L ../../slua/lib/ ../../slua/lib/linux/liblua.a -ldl
When compiling program using g++ version 5.4.0 , I get the undefined reference errors using the following command .
g++ -o test test.cpp -I ../../slua/include/ -L ../../slua/lib/ ../../slua/lib/linux/liblua.a