From: Dmitrii Golub on
I try to compile c file with gcc.
In this c file I use matlab shared library, this is function:
gcc newmain.c -I/media/backup/matlab2010/extern/include, but I get errors:


newmain.c:(.text+0x32): undefined reference to `mlfScalar'
newmain.c:(.text+0x47): undefined reference to `mlfAssign'
newmain.c:(.text+0x56): undefined reference to `mlfScalar'
newmain.c:(.text+0x6b): undefined reference to `mlfAssign'
newmain.c:(.text+0x84): undefined reference to `mlfAdditor'

What I do wrong, here is my newmain.c
http://pastie.org/987953
In same folder I have lib_math.h and lib_math.so

Thanks in advance