Displaying 1 result from an estimated 1 matches for "compile_and_run".
2015 Feb 16
4
[LLVMdev] Segfault when using llvm-3.6 and OpenGL at the same time on Linux (with mesa, which uses llvm-3.4)
...splayMode(GLUT_SINGLE);
glutInitWindowSize(500, 500);
glutInitWindowPosition(100, 100);
glutCreateWindow("This crashes when using an llvm lib");
// Crash happens here:
glutDisplayFunc(display);
glutMainLoop();
}
daniel at ubuntu32-dev:~/projects/llvmcrash/app$ cat compile_and_run.sh
rm -rvf libcrashme.so app
g++ -shared -o libcrashme.so crashme.cpp `llvm-config-3.6 --cxxflags` && \
g++ -rdynamic -o app app.cpp -L. -lcrashme -lGL -lglut `llvm-config-3.6
--ldflags --libs` -lpthread -ldl -lncurses && \
LD_LIBRARY_PATH=. ./app
daniel at ubuntu32-dev:~/projects/l...