Sunday, May 30, 2010

Matlab LCC compiler linking winsock library problem

When you confront with following errors in workspace :
server.obj .text: undefined reference to '_WSAStartup@8'
server.obj .text: undefined reference to '_WSACleanup@0'


link wsock32.lib to compiler instead of ws2_32.lib

workspace command :
" mex server.c wsock32.lib "