안녕하세요
전 c로 작성된 네트웍 프로그램을 사용하고 있습니다.
그런데 STL을 사용하려고 해서 컴파일 옵션에
gcc -o test test.c -lstdc++ -lpthread
라고 해보았지만 컴파일이 되질 않네요.
#include <iostream>
#include <vector>
이렇게 헤더파일만 넣어 보았는데 헤더파일을 찾을 수 없다고 나오네요.
그래서 test.cpp로 하고
g++ test test.cpp -lpthread 라고 하면
[code:1]connection.cpp: In function `int listenServer (int)':
connection.cpp:66: `bzero' undeclared (first use this function)