COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### fatal error C1083: Cannot open include file: 'simstruc.h': No such file or directory

• Email
• Follow

Hi

I am new to Matlab and I am trying to mex .c files for the ADM1 model.  I have the 64bit program and installed the Visio compiler.  I did the mex -setup successfully but when I try to mex the .c files I get the following error message:

adm1_DAE1.c(19) : fatal error C1083: Cannot open include file: 'simstruc.h': No such file or directory

C:\PROGRA~1\MATLAB\R2010B\BIN\MEX.PL: Error: Compile of 'adm1_DAE1.c' failed.

??? Error using ==> mex at 208
Unable to complete successfully.

Anyone have any ideas what the problem is?

Thanks

 0

See related articles to this posting

This a reply I got from another forum

I assume this is the header file for the simulink tootbox (which I have never used)
do you need to download and install the toolbox? set up paths, etc?

Does that make sense to anyone?

also I have found this

"Matthew " < - > wrote in message <i7ptrd$q9s$ - >...
> Since updating to 2010b, when ever I try and mex a .cpp file I get the error: Fatal Error C1083: Cannot open include file: 'simstruc.h': No such file or directory. This even happens using Simulinks own S-Function Builder. When I look for the file I see that it is in Matlab\Simulink\Include. Were is the path setup for Simulink mex and why did this change from 2010a?
>
> Thanks,
> Matt

Fixed per Bug Report 661855, for some reason that doesn't show up on Google!?

I have the same problem ,you can modify the file mexopts.bat .and find the line "set INCLUDE" then add the following string "%MATLAB%\simulink\include;"

To be honest, this still doesn't explain or clear-up anything for me

 0

Can anybody help with this? Please

 0

Does anyone know how I can modify the the mexopts.bat file or do i have to install and update if there was a bug as is indicated in the above message.

 0

OK I have fund the mexopts.bat  file and found the line "set INCLUDE" then added the following string "%MATLAB%\simulink\include;"

and that worked

 0

I found the mexopts.bat in C:\Users\*yourUsername*\AppData\Roaming\MathWorks\MATLAB\R2010b and added the string "%MATLAB%\simulink\include;" right after where it says "set INCLUDE = " so that it finally looks something like this:

and it worked. Thanks for the help all!

 0

"Hashim  Mazhar" <hashim.mazhar@gmail.com> wrote in message <ivq7c0$ktr$1@newscl01ah.mathworks.com>...
> I found the mexopts.bat in C:\Users\*yourUsername*\AppData\Roaming\MathWorks\MATLAB\R2010b and added the string "%MATLAB%\simulink\include;" right after where it says "set INCLUDE = " so that it finally looks something like this:
>
>
> and it worked. Thanks for the help all!

Thank you so much! I did and now it works perfectly.
Thank you

 0

"Michael O Loinsigh" wrote in message <ig9q62$pfm$1@fred.mathworks.com>...
> Can anybody help with this? Please

 0
Reply berust24 (1) 4/25/2013 7:37:09 AM

7 Replies
770 Views

Similar Articles

12/11/2013 3:14:49 AM
page loaded in 44364 ms. (0)

Similar Artilces:

error : Too many open files
I am getting following error while calling shmat() on SOL 2.8 perror() of shmat : "Too many open files" I added the following entries in the /etc/system file. It helped for sometime, but after some period of time same problem is seen again. #Addition in /etc/system ( adding shminfo_shmseg ,shminfo_shmmax value ... changing itto 2 times the default ) forceload: sys/shmsys forceload: sys/semsys set shmsys:shminfo_shmseg=12 set shmsys:shminfo_shmmax=2097152 even tried the following but no help ------------------------------------- forceload: sys/shmsys forceload: sy...

File open next and errors
I am getting a "record not available" error when reading a file and am perplexed about how to OPEN this file, how to READ it and CLOSE. Here are the details: I have a folder in which there are a number of files of the same type. They are "text" files in the sense that the names are like ADNewusers1.txt, ADNewUsers2.txt etc and the records in each file are in text format and have <CR><LF> record endings. In my Dictionary I have defined this file with the Database Driver = ASCII (text). The Code says: 1 DIRECTORY(AllFiles,clip(CON:SourceDirectory),ff_:norma...

Including graphics which are in a directory below the .tex file
I have a problem. I want a file, with which I can easily compile figures which are generated in a directory below. For example: c:\figures (place of the figures in .eps format) c:\figures\tex (place of the .tex file) I am using the following code: \documentclass[a4paper]{article} \usepackage[dvips]{graphicx} \begin{document} \begin{figure}% \includegraphics[width=\columnwidth]{../fig01}% \end{figure} \begin{figure}% \includegraphics[width=\columnwidth]{../fig02}% \end{figure} \begin{figure}% \includegraphics[width=\columnwidth]{../fig03}% \end{figure} \begin{figure}% \includegraphics[wi...

Is there a command to open a file as well as to create the directory if it is not exist?
Hi, The following code would give the following error, if the dir 'xy' does not exist. print() on closed filehandle OUT at ./open.pl line 7. I'm wondering if there is a perl command that is smart enough to create an directory automatically when it opens a file for write. Thanks, Peng #!/usr/bin/perl use strict; use warnings; open(OUT, '>xy/abx.txt'); print OUT "Hello World\n"; Peng Yu <PengYu.UT@gmail.com> wrote: >I'm wondering if there is a perl command that is smart enough to >create an directory automatically when it opens a file for...

Error Opening Files with Unicode (U+2212 Minus Sign) Character
I am using Adobe Acrobat Professional 7.0 (Japanese) and I am having problems opening files having the U+2212 Character in their file names. Acrobat just can't open the files. I've tried creating txt and doc files with filenames containing the U+2212 character and Notepad and Word respectively don't seem to have the same problems as Adobe. Anyone help me. To name a PDF file, use Window's Character Map accessory and look for the U+2212 character. Copy and paste it to the PDF file name. ...

Final Cut Pro HD: General Error 41
Hi Everyone, Problems again. Thanks for all of you who responded to my last dilemma. Using Final Cut Pro HD, I saved my project and tried to reopen it and it won't open; gives me a "General Error 41" message. I saved a copy to the desktop and it wouldn't open either. I tried restarting, using 400 firewire and 800 firewire and nothing. Anyone know of a solution? Thanks and appreciation ahead of time. Nicole Hi Nicole: General Error 41 could be a "Memory full (open) or file won't fi (load)" Try running a disk/ permissions repair. Also-Cache Out X is a...

PPM installation error
Hello, I am installing a Perl module Windows 2000 Server and get the following error message: C:\>ppm install http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd Error installing package 'http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd': C ouldn't open C:\temp/Crypt-SSLeay/ for writing C:\> Notice the direction of the slashes. Is there a parameter to specify the directory? The command works properly on Windows 2000 Professional and Windows XP (2 desktops). Any suggestions or solutions are very welcome... ;-) Andre Caron Mirabel, Canada "Andre Caron" &l...

syncronizing between two file descriptors open on the same file
Hi all, Does anyone know how the implementations on Linux handles synchronization between a read and write FD open to the same file. (And on most OS's these days) For example, if I have 2 FD open to file X.txt. 1 I use for reading, the other for writing. If I write to position 125 on the write_FD, call fflush, and then turn around and read from the read_FD position 125, am I guaranteed to get the result I just wrote? I could call sync after each write, but that would be a performance killer. Thanks for the help. Jacob jacob.green@gmail.com wrote: > Does anyone know how the im...

PSD files save as PSP9 files and open as such
Hello, I have PhotoShop7 and PSP9 on my computer. Just recently, when I save in PSD. format the photo, when I read the properties, says it opens with PSP9. So, when I click on the photo PSP9 opens automatically and the photo appears there. If I use the file browser in PhotoShop there is no problem. If anyone knows a reason for this and how to remedy it , I would appreciate the help. If any more info. is needed I will supply it. thank you very much Frank btw...I replied to the email digest and it hasn't showed for two days. Is that not the proper way to respond.thanks frank wrote: > He...

vba code to open file dialog for importing files
Hello, Can anyone tell me a vba code (or any other way) where I can have a dailog box pop up for the user(when he clicks as button) to IMPORT a table. Deepak Reddy wrote: > Hello, > > Can anyone tell me a vba code (or any other way) where I can have a > dailog box pop up for the user(when he clicks as button) to IMPORT a > table. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This site has some VBA code that does something similar: http://www.mvps.org/access/tables/tbl0012.htm -- MGFoster:::mgf00 <at> earthlink <decimal-point> net Oakland, CA (USA) ** Respon...

Syntax error on external JS file beyond end of file
Hi All, I know this is a novice question that I should be able to solve through searching but I have Googled my fingers off and not found anything that seems to help. I have the following HTML file: --- <html> <head> <title>Test</title> <script type="text/javascript" src="test.js"></script> </head> <body> Hi There. <a href="javascript:doit()">Click Me</a> </body> </html> --- The following js file: -- function doit() { alert("I did it"); } -- Running htm file locally (double cli...

Read strings from one file and search for them in a directory containing htm files
Hi Folks, Trust this message finds you all in great spirits. I have a problem - I have one file where each line is treated as ONE STRING. I need to read each line from this file and search for that line in another directory which contains some 100 .html files. Once I find a matching line that contains that ONE STRING, I need to write that ONE STRING into another file. I need to discard those that are not found in any of those 100 .htm files. So basically my intention is to find out if the strings are used in any of the 100 .htm files that exist in another directory. Am new to awk and tried...

portably encrypting a file system's partition, directory and/or file
Hi *, I have firewire and USB devices with partitions/logical drives, whole directories and/or files I would like to encrypt. The thing is that I need to be able to just plug in the thing on any x86 machine running a commercial OS that would just take it (and AFAIK the only filesystem that even a MAC would seamlessly 'mount' is vfat/FAT32) is there anyway to do that? I have read quite a bit about it and I still don't find exactly what I need. Also, why exactly does encryption belong in the kernel? I think once you make it a kernel-depending functionality 'portability...

portably encrypting a file system's partition, directory and/or file #2
Hi *, I have firewire and USB devices with partitions/logical drives, whole directories and/or files I would like to encrypt. The thing is that I need to be able to just plug in the thing on any x86 machine running a commercial OS that would just take it (and AFAIK the only filesystem that even a MAC would seamlessly 'mount' is vfat/FAT32) is there anyway to do that? I have read quite a bit about it and I still don't find exactly what I need. Also, why exactly does encryption belong in the kernel? I think once you make it a kernel-depending functionality 'portability...

make "File name" default when searching in an "open file" dialogue ?
With Snow Leopard, I have noticed that if, in a file selection dialogue, I want to use the search feature, as I start typing in the search box, the dialogue changes to a search dialogue with a default set to "contents". Anyone know if there is a way to have it default to "File name" ? I find it annoying to have to switch from typing, move mouse to click on the "file name" button, then click back into the input field to finish the seach term. I know this isn't a major issue, but if there were a way to get it to use "file name" by default...

open files
Is there a way to know which processes are accessing a particular file in Solaris 8? (The file in question may not be open now, but may be accessed later; basically monitor events on the file). Thanks SN In article <1103298522.946517.29180@z14g2000cwz.googlegroups.com>, star_night@my-deja.com wrote: > Is there a way to know which processes are accessing a particular file > in Solaris 8? (The file in question may not be open now, but may be > accessed later; basically monitor events on the file). Get lsof - e.g. from sunfreeware.com. Documentation is provided in the bundle...

open files.
If I use open(fp, $FILENAME), where$FILENAME contains some subdirectory that hasn't been set up yet, then it fails. Is there any way I can get around this by letting the program to create the subdirectory if needed? BeHealthy@gmail.com wrote: > If I use open(fp, $FILENAME), where$FILENAME contains some > subdirectory that hasn't been set up yet, then it fails. open() is not used for directories, it is used for files. perhaps you're thinking of 'opendir()'? > Is there any > way I can get around this by letting the program to create the > subdirectory if...

how to open this file
Hi Members, i am new in perl , so i want your's help. Please help me. i am making a programm amd i want to open a file of different directory. and i worte the code $filename1=012945; unless (open(FILE1,"C:/Ritu/FastaSeqs/$filename1.CONSENS") ) { print "Cannot open file \"$filename1.CONSENS\"\n\n"; exit; } @sts_seq =<FILE1>; but i got message that cannot open file. am i doing something wrong. ritu_mi...@yahoo.co.in wrote: > i am new in perl , so i want your's help. Please help me. > i am making a programm amd i want to o... opening files Can anyonne plz help me I was trying to open files in my perl program but it actually never works... all knowing "all knowing" <all_knowing@hotmail.com> writes: > Can anyonne plz help me > I was trying to open files in my perl program but it actually never > works... "It doesn't work" is the worst possible description of the problem that you could give. <http://www.catb.org/~esr/faqs/smart-questions.html> If your open()s are failing silently, you can fix that; instead of using open my$foo, "foo.txt"; Use this instead: ...

I want to rename 660 files using a script I wrote in Javascript
I've a friend who needs to rename 660 EPS files. I thought a script would be the way to do it. Trying to help them out, so I'm trying to write a script using Javascript that will allow a string to be added to every file in a folder. Below you'll see what I've got so far. Is 'e' as in 'edit' the correct mode to open these files in? Would 'r' as in 'read' mode be safer and still allow the name change? var selectedFolder = Folder.selectDialog("Select the folder to run this script on. All files in the folder will be affected."); var all...