News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

MatLab and Code::Blocks

Started by zergling, January 06, 2011, 03:33:57 AM

Previous topic - Next topic

MortenMacFly

Quote from: zergling on January 13, 2011, 09:10:42 AM
Finally I was able to go over the script wizard :D
Sounds good... :-)

Quote from: zergling on January 13, 2011, 09:10:42 AM
The only problem it that I do not know which header files I have to include...
By default I have #include <windows.h> that is for a windows system.
To be honest: I can't tell. windows.h can be removed obviously, but which one are needed you'll see when you compile the S-function... via trial-and-error. I simply don't know the dependencies of the Linux libraries of Matlab. Again you can try to compile under Matlab using mex with the "verbose" switch and/or look at the S-function samples that are shipped with Matlab.

Quote from: zergling on January 13, 2011, 09:10:42 AM
By the way, can I remove all the lcc references in the script?
Yes, certainly. LCC is a Windows only compiler.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]