Author Topic: Build project Problem  (Read 4272 times)

EinZwei

  • Guest
Build project Problem
« 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.


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Build project Problem
« Reply #1 on: August 25, 2014, 06:17:49 pm »
Read this FAQ 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

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.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Build project Problem
« Reply #2 on: August 26, 2014, 08:24:52 am »
                                 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.
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