From: Kevin Ostheimer on
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
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