cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

andrewchao
Journeyman III

Some confusing problems on simple matrix multiple

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:
        getchar();

4. Warning: old-style declaration or incorrect type:
        getchar();
                      ^

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.   

 

0 Likes
1 Reply
Ceq
Journeyman III

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"?

0 Likes