| | |
Problems with linking OBJ files
![]() |
•
•
Join Date: Jul 2005
Posts: 2
Reputation:
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
![]() |
Similar Threads
- New To Mac,Problems Downloading (OS X)
- Im new, help with log files for first time please (Viruses, Spyware and other Nasties)
- Linking files for Compilation in C++ Data Structures (C++)
- Linking Error In C (C)
- Linking "park" ERROR (C)
- Delete files on restart (Windows NT / 2000 / XP)
- Files missing from Internet Explorer (Web Browsers)
Other Threads in the C Forum
- Previous Thread: How to send files through a socket connection?
- Next Thread: Using Assembly Codes in Bloodshed Dev-CPP
| Thread Tools | Search this Thread |
* ansi api array arrays binarysearch calculate centimeter changingto char character convert copyanyfile copypdffile creafecopyofanytypeoffileinc createcopyoffile createprocess() database directory dynamic execv fflush file floatingpointvalidation fork forloop frequency function getlasterror getlogicaldrivestrin givemetehcodez grade graphics gtkgcurlcompiling gtkwinlinux hardware highest histogram homework i/o inches include infiniteloop input intmain() iso keyboard km license linked linkedlist linux list looping loopinsideloop. lowest matrix microsoft mysql oddnumber open opendocumentformat openwebfoundation pdf pointer posix power program programming pyramidusingturboccodes radix read recursion recv recvblocked repetition reversing scanf scheduling segmentationfault send shape single socketprogramming stack standard strchr string suggestions test threads turboc unix urboc user variable whythiscodecausesegmentationfault win32api windows.h windowsapi






