1 Reply Latest reply on Oct 14, 2008 6:02 AM by zimoch

    How to run preprocesor before brook+ compiler in VS

    zimoch
      I would like to take into considaration my include files

      I realized that brook compiler doesn't use preprocessor so my functions/ structs that I want to include aren't visible while compiling my br files

      I noticed a note about brook compiler :

      [code]

      brcc does not run a preprocessor stage before processing the input
        file. If your program requires preprocessing to occur, arrange for
        an external preprocessor step to be run before calling brcc.

      [/code]

       

      How to do that in VS 2005?

       

       

       

        • How to run preprocesor before brook+ compiler in VS
          zimoch

          Additional question. Why brcc compiler act like it doesn't see my function that are included in common.h? Why other function that are included in common.h work fine in samples i.e.:

          output_image = allocate_mat_f4(Height, Width) in NLMDenoise works

          but my fnuction appended to common.cpp and declared in common.h isn't visible by compilator

          I have errors like : Error (syntax error) before 'Identifier' .....

           

          Problem is fixed . It turned out that I have variable declaration in middle of code (Java habit)