Please support our C advertiser: Programming Forums
Views: 1956 | Replies: 2
![]() |
•
•
Join Date: Jul 2005
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Hi everyone,
i am havinh problems linking OBJ files that uses the following:
#include <stdio.h>
#include <winsock2.h>
#pragma comment(lib, "ws2_32")
I am working on MEX matlab files.
When i link them, i get the following errors:
>> mex timestwomex.c C:\MATLAB6p5\sys\lcc\lib\ws2_32.lib
timestwomex.obj .text: undefined reference to '_gethostbyname@4'
timestwomex.obj .text: undefined reference to '_getsockname@12'
timestwomex.obj .text: undefined reference to '_inet_ntoa@4'
C:\MATLAB6P5\BIN\WIN32\MEX.PL: Error: Link of 'timestwomex.dll' failed.
N.B: I use the mex compiler and linker on windowsXP.
Thanks,
Ramow
i am havinh problems linking OBJ files that uses the following:
#include <stdio.h>
#include <winsock2.h>
#pragma comment(lib, "ws2_32")
I am working on MEX matlab files.
When i link them, i get the following errors:
>> mex timestwomex.c C:\MATLAB6p5\sys\lcc\lib\ws2_32.lib
timestwomex.obj .text: undefined reference to '_gethostbyname@4'
timestwomex.obj .text: undefined reference to '_getsockname@12'
timestwomex.obj .text: undefined reference to '_inet_ntoa@4'
C:\MATLAB6P5\BIN\WIN32\MEX.PL: Error: Link of 'timestwomex.dll' failed.
N.B: I use the mex compiler and linker on windowsXP.
Thanks,
Ramow
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode