cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

zimoch
Journeyman III

How to run preprocesor before brook+ compiler in VS

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 :

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.

 

How to do that in VS 2005?

 

 

 

0 Likes
1 Reply
zimoch
Journeyman III

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)

0 Likes