From: Naveen Dhawan on 23 Dec 2009 03:40 > The failed line is in gs_support.c, line 174 in this version: > > #if defined (_WIN64) > cookie = systime.ft_scalar; > #else /* defined (_WIN64) */ > cookie = systime.ft_struct.dwLowDateTime; <---- > cookie ^= systime.ft_struct.dwHighDateTime; > #endif /* defined (_WIN64) */ > > I have compiled test.exe with /GS- in order to avoid security, but nothing changes. > > I have tried the solutions in the thread below with no resolution. > http://www.mathworks.de/matlabcentral/newsreader/view_thread/71208 > > Please advise! > > andre Hey there Andre, I've noticed that you have posted quite a few of these messages around the internet and just wanted to let you know that I was able to get my test.exe working. I too was having a lot of trouble with this getting the same error message. I can't be for sure what was causing it but my hunch is that it requires the correct include directories in the MS visual project. I kept telling the project the wrong installation directories for the matlab include files for both the C++ and Linker steps. Try to make sure the same thing is not happening to you. It happened to me because I was careless about what I copied from the tutorial including the directories they gave. Another step that seemed to have worked out well for me was telling matlab to not embed the .CTF into the executable but I don't think this is where I messed up. One other step I took was reinstalling MSVC 2005 completely and doing a full rather than a express install. Maybe this will prove useful, but I doubt it. Anyways, I hope this helps and hopefully any others with this error will find this useful. I know I had a lot of trouble with this and am extremely happy I can finally link C/C++ with Matlab. Its awesome having it work! :) Good luck and take care. Naveen
|
Pages: 1 Prev: Fitting polynomial to a surface Next: Data from Analog Devices |