Notice
Recent Posts
Recent Comments
목록Link Option (1)
Dharma
[CppUnit] Linux 에서 컴파일시
그냥 컴파일 하면 에러가 발생합니다. > g++ -o test test.cpp -lcppunit > ./libcppunit.so: undefined reference to `dlclose' > ./libcppunit.so: undefined reference to `dlopen' > ./libcppunit.so: undefined reference to `dlsym' > collect2: ld returned 1 exit status > make: *** [test] Error 1 이런 에러 인데 , 기존의 윈도우 체제랑은 달라서 조금 당황합니다. 침착하게 -ldl 옵션을 link 옴션에서 추가해 주시면 무리 없이 컴파일 됩니다.
프로그래밍
2007. 11. 8. 15:19