rval= socket(AF_INET, SOCK_RAW,6); I am trying to make socket by using above function but it is showing error " undefined reference to Socket" Please tell me how to link against lib socket in detail ,i am not able to link it . Thanks