From: delage stephanie on 21 Jan 2010 10:50 Hello, I need to compile a fortran program which calls matlab functions. As I have never done it before, I try to compile examples given on the matlab documentation: engdemo.c and fengdemo.f. When I try to compile engdemo.c (with the command mex engdemo.c), I have the following error message: =================================== engdemo.o: In function `main': engdemo.c:(.text+0xdb): undefined reference to `engOpen' engdemo.c:(.text+0x1ab): undefined reference to `engPutVariable' engdemo.c:(.text+0x1ba): undefined reference to `engEvalString' engdemo.c:(.text+0x1c9): undefined reference to `engEvalString' engdemo.c:(.text+0x1d8): undefined reference to `engEvalString' engdemo.c:(.text+0x1e7): undefined reference to `engEvalString' engdemo.c:(.text+0x1f6): undefined reference to `engEvalString' engdemo.o:engdemo.c:(.text+0x234): more undefined references to `engEvalString' follow engdemo.o: In function `main': engdemo.c:(.text+0x248): undefined reference to `engOutputBuffer' engdemo.c:(.text+0x2b9): undefined reference to `engEvalString' engdemo.c:(.text+0x2e8): undefined reference to `engGetVariable' engdemo.c:(.text+0x339): undefined reference to `engClose' collect2: ld returned 1 exit status mex: link of ' "engdemo.mexa64"' failed. ================================== Can someone help me?
|
Pages: 1 Prev: error message while compiling engdemo.c Next: Double integration on infinite rectangles |