From: Kevin Ostheimer on 19 Sep 2006 06:08 The source code is very simple but causes a linker error... ********************************************************* #include <stdio.h> #include <stdlib.h> #include <engine.h> int main(void) { Engine *ep; ep=engOpen(NULL); engClose(ep); system("PAUSE"); return; } ********************************************************* - Matlabworkspace set to C-Code Workspace - MATLAB Version 7.1.0.124 (R14) Service Pack 3 !!!But I get a Linker error although everything is successfully included: [Linker error] undefined reference to `engOpen' *********************************************************
From: Olaf Naujocks on 19 Sep 2006 07:15 Kevin Ostheimer wrote: > > > The source code is very simple but causes a linker error... > > ********************************************************* > #include <stdio.h> > #include <stdlib.h> > #include <engine.h> > > int main(void) > { > Engine *ep; > ep=engOpen(NULL); > engClose(ep); > system("PAUSE"); > return; > } > ********************************************************* > > - Matlabworkspace set to C-Code Workspace > - MATLAB Version 7.1.0.124 (R14) Service Pack 3 > !!!But I get a Linker error although everything is successfully > included: > [Linker error] undefined reference to `engOpen' > > ********************************************************* Hi, what command did you use? Have you explicitly used the -f option with the mex command? To build standalone executables you have to specifiy the correct mexopts bat file. regards
|
Pages: 1 Prev: #include <engine.h> Next: SuSE 10.1, Matlab R2006b, Samba-printing No PrintUI |