I tried to compile a source code which I found on internet with Qt Creator.My problem is,when I try to compile the source code with Qt Creator's menu item "Build Project",it gives these types of errors:
"
Undefined reference to htons@4
Undefined reference to `gethostbyname@4'
Undefined reference to ...
...

"

Why does this problem happen?What should I do?