|
|
mex compiling error with header file
Hi, dear...
I am compiling my mex with c compiler, after configuring my mex setup, and reading option files from dialogue. I input my command as below.
>>mex -f C:\MATLAB\bin\win32\mexopts\msvc*.bat -ID:\..\..\include test.c
As you can see above, I have indicated option file as well as header file locations. (I omitted the exact bat file name and the first two folders of D directory above, but I have determined the absolute path, in my actual command). Current directory is at the MEX-function\function where my test.c file is located.
But error reports that...
-------------------------------------------------------------------------------------------------------------------
test.c: fatal error C1083:can not open include file:'test.h':No such a file or directory.
C:\matlab\bin\win32\mex.pl:ERROR:compile of test.c failed.
------------------------------------------------------------------------------------------------------------------
As another approach, if setting the include folder as a current directory, then mexing test.c, then error reports it can't find test.c.
Does MAtlab differentiate '\' and 'W' like a syntax error? That's why it can't find the location? -_-;
How can I get out of this?
thank you,
La.
|
|
0
|
|
|
|
Reply
|
Celine
|
3/26/2010 11:22:03 AM |
|
"Celine La" <helio_22@naver.com> wrote in message <hoi5cr$g0s$1@fred.mathworks.com>...
>
> Hi, dear...
>
> I am compiling my mex with c compiler, after configuring my mex setup, and reading option files from dialogue. I input my command as below.
>
> >>mex -f C:\MATLAB\bin\win32\mexopts\msvc*.bat -ID:\..\..\include test.c
Make the directory that contains test.c your current directory and try the function form of the mex command. e.g., like this:
mex('-f','C:\MATLAB\bin\win32\mexopts\msvc*.bat','test.c')
James Tursa
|
|
0
|
|
|
|
Reply
|
James
|
3/26/2010 1:32:05 PM
|
|
|
1 Replies
391 Views
(page loaded in 0.077 seconds)
Similiar Articles: mex compiling error with header file - comp.soft-sys.matlab ...Hi, dear... I am compiling my mex with c compiler, after configuring my mex setup, and reading option files from dialogue. I input my command as ... Compilation error with C++ mex file - comp.soft-sys.matlab ...... C++ file using the mex compiling ... Header files are not typically included on the mex command line, so your SPA_SDK.h file looks ... Compilation error with C++ mex file ... Mex compiling problem - comp.soft-sys.matlabHere is the file header ... So I tried to compile the file using mex -c mb ... 13 errors in Compile *** C:\PROGRA~1\MATLAB\R2007B\BIN\MEX.PL: Error: Compile ... Compiling MCR C++ dll with VS2010 - comp.soft-sys.matlab ...... for me, but only if I moved the MEX header (mex.h) at the bottom of all includes in my C file. ... Compilation error with C++ mex file - comp.soft-sys.matlab ... Compilation ... Obtaining the Filename and Full Path of Submitted Programs - comp ...... the filename and full path in the SAS log: %put Submitted file ... MEX ERROR: "Could not find the compiler "cl" on the DOS path ..... Visual C/C++ version 5.0 in C ... Linking error when compiling mex files with Matlab R2008a - comp ...Compilation error with C++ mex file - comp.soft-sys.matlab ... Linking error when compiling mex files with Matlab R2008a - comp ... Compilation error with C++ mex file ... MEX file cannot find entry point in 64-bit linux - comp.soft-sys ...I have written a mex file that compiles fine within 32-bit ... 64-bit linux environment, I get the following error after compilation (which occurs just fine): Mex file ... MEX ERROR: "Could not find the compiler "cl" on the DOS path ...I've created a CF66OPTS.* file; I've tried DF66* as well; nothing ... of the perl script and batch files that TMW uses to compile mex within Matlab had an error in which ... Matlab Mex Compiler and Csdp.Exe Error - comp.soft-sys.matlab ...mex compiling error with header file - comp.soft-sys.matlab ... Cross-compiler mex files on Windows 7 64 bit - comp.soft-sys ... Matlab Mex Compiler and Csdp.Exe Error ... Mex File: fatal error LNK1120: 7 unresolved externals - comp.soft ...Also, I have put all header file etc in the same folder as my original ... Compilation error with C++ mex file - comp.soft-sys.matlab ... Mex File: fatal error LNK1120: 7 ... mex compiling error with header file - comp.soft-sys.matlab ...Hi, dear... I am compiling my mex with c compiler, after configuring my mex setup, and reading option files from dialogue. I input my command as ... mex compiling error with header file - Newsreader - MATLAB CentralFile exchange, MATLAB Answers, newsgroup access, Links, and Blogs for the MATLAB & Simulink user community 7/26/2012 4:03:37 PM
|
|
|
|
|
|
|
|
|