Hello.
I am trying to write a mex file in matlab to use a USB-1208FS-Plus under linux. I am stuck on a what probably is a very simple problem. I start the script with #include "uldaq.h". Without providing any path, I receive the error "uldaq.h: No such file or directory.". If I provide the path to uldaq.h in libuldaq-1.2.1/src (in matlab: "mex -I/path_to_uldaq/ my_script.c"), then I still receive the errors "undefined reference to `ulGetDaqDeviceInventory`", "undefined reference to `ulCreateDaqDevice`" etc. for every function of uldaq called within the script.
So my question is what exactly do I need to provide to matlab and/or include in the script for successfully compiling the mex file?
Thanks,
Baptiste
Question
Baptiste
Hello.
I am trying to write a mex file in matlab to use a USB-1208FS-Plus under linux. I am stuck on a what probably is a very simple problem. I start the script with #include "uldaq.h". Without providing any path, I receive the error "uldaq.h: No such file or directory.". If I provide the path to uldaq.h in libuldaq-1.2.1/src (in matlab: "mex -I/path_to_uldaq/ my_script.c"), then I still receive the errors "undefined reference to `ulGetDaqDeviceInventory`", "undefined reference to `ulCreateDaqDevice`" etc. for every function of uldaq called within the script.
So my question is what exactly do I need to provide to matlab and/or include in the script for successfully compiling the mex file?
Thanks,
Baptiste
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now