Author Topic: MatLab and Code::Blocks  (Read 43183 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: MatLab and Code::Blocks
« Reply #15 on: January 13, 2011, 09:55:51 am »
Finally I was able to go over the script wizard :D
Sounds good... :-)

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.
Code
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.

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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ