| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |
From: jesse@MIT.EDU To: bugs@MIT.EDU Date: Fri, 27 May 94 12:48:03 EDT System name: dale Type and version: SPARC/Classic 7.6R Display type: cgthree What were you trying to do? A user asked a question in OLC regarding the external interface to Matlab and calling it from a C program. Was trying to compile the program on the Sun Sparcs. What's wrong: I get this message with the following compile line: gcc test2.c -o test2 -I/mit/matlab/Matlab4.1/extern/include -L/mit/matlab/Matlab4.1/extern/lib/sol2 -lmat -lm Undefined first referenced symbol in file gethostbyname /mit/matlab/Matlab4.1/extern/lib/sol2/libmat.a(engintrf.o_sol2) What should have happened: I compiled it on a DecStation without any problems. It must have to do with some missing library function on the Suns. There is the function gethostname in unistd.h, but didn't find gethostbyname. Is there some library I'm missing that I need to link with? Please describe any relevant documentation references: The Matlab external reference guide, but that isn't too relevant to this problem.
| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |