Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: EinZwei on August 25, 2014, 05:27:55 pm
-
Hi, guys
Iam currently doing a noise cancellation project.
Here is how things work: I used MATLAB-SIMULINK to generate the necessary code.
Then I am trying to use CodeBlocks to cross compile the code for ARM CORTEX A8.
During the build process, Codeblocks says:"unknow type name'mxArray'" in the file named "simstruc.h", this is actually an embedded file in the matlab.
But the code includes:
if !defined(TYPEDEF_MX_ARRAY)
# define TYPEDEF_MX_ARRAY
typedef real_T mxArray; /* Run-time interface for Real-Time Workshop */
# endif
You can find the file in : http://www.ligo-wa.caltech.edu/~cheryl.vorvick/etmx2007/OldStuffFromPCLaptop/MATLAB6p1/simulink/include/simstruc.h
CodeBlock is somehow "ignoring" parts of the code,(I am saying this, because the colors of the codes are different),
Anyone know about this situation?
Need advices.
Cheers.
-
Read this FAQ http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)
Read this site rules. http://forums.codeblocks.org/index.php/topic,9996.0.html (http://forums.codeblocks.org/index.php/topic,9996.0.html)
Does your post violate the rules?
I have no idea because I did NOT really understand your post.
If it does,violate the rules, post the "Build Log" on a site that supports the Compiler/Library/hardware platform you are using.
Tim S.
-
CodeBlock is somehow "ignoring" parts of the code,(I am saying this, because the colors of the codes are different),
You can disable this feature by: Settings -> Editor -> CodeCompletion -> Tab C/C++ Parser -> Disable "Parse preprocessor directives".
The actual error is probably that you are missing to set some #defines (macros definitions) in your project setup or simply CC is unable to parse the complex macros. Nevertheless, the compiler will handle this correctly. If you are confused by the colouring disable it.