When I was trying to build the sample program(.br) of simple matmul with VS2009 some problems surfaced as below(maybe some green-hand probs as I met brook+ just about a week ago), all environment configuration finished in accordance with the brook+ user guide.pdf:
1. Error (syntax error) before 'unsigned'
unsigned int i;
2. Warning: old-style declaration or incorrect type:
retval = -1;
3. Unknown parameter: getchar:
4. Warning: old-style declaration or incorrect type:
idk why these always kept happening with the syntax all in obedience to C regulations.
Besides, there are quite a handful of functions that's not declared and defined as i failed to trace the source code of them in VS2009 IDE.
i.e. allocate_mat_f fill_mat_f print_mat_f and a macro called RANDOM
guess some head files are missing but brcc shall add those heads to target cpp files automatically.
VS2009? I'm not sure about which version of Visual Studio is this. Anyway, only VS2005 and VS2008 are supported.
Make sure '.br' files are processed directly by Brook+ 'brcc' compiler, MSVC compiler should only use the resulting files.
On the other hand you're trying to build 'simple_matmult' from the "samples/legacy" folder, did you try the one in "samples/CPP"?