Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » In function `main': undefined reference to `socket'
In function `main': undefined reference to `socket' [message #96492] Thu, 11 March 2004 00:06
Eclipse UserFriend
Originally posted by: andrew.iaes.cjb.net

i have a programm:
#include <sys/types.h>

#include <sys/socket.h>



int main(int argc, char *argv[])

{


int m_nSocket=-1;

m_nSocket=socket(AF_INET, SOCK_STREAM,0);


return 0;

}



but , i have error :

In function `main': undefined reference to `socket'



i work in IDE QNX Momentics, how i link library socket to this programm?

Andrei
Previous Topic:"problems" window
Next Topic:HELP: Eclipse CDT and Borland C++ 5.5
Goto Forum:
  


Current Time: Sun Jul 13 17:29:50 EDT 2025

Powered by FUDForum. Page generated in 0.43150 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top