MY IT

Libwww compile option

메롱씨티 배드맨 2007. 12. 26. 10:05

w3c-libwww-5.4.0를 default 로 설치하면 기본 path : /usr/local/lib

 

-------------------------------------------------------

#.profile 변경

setenv LD_LIBRARY_PATH "/usr/local/lib"
setenv PATH "${PATH}:/usr/local/lib"

-------------------------------------------------------

( --prefix를 잡아줬을 경우엔 새로 설정한 Directory로 Path 추가 )

 


적용후 compile

 

gcc -o test `libwww-config --cflags` test.c `libwww-config --libs`

g++ -o test `libwww-config --cflags` test.cc `libwww-config --libs`


일반적인 -lwww-config 가 아니라서 좀 헷갈림..