Page 1 of 1

errors in tasking examples

PostPosted: Thu Jan 24, 2008 4:57 am
by dmikh
There are some errors in C examples, A.13 Tasking Constructs:

A.13.1c (pp174,175) - no prototype of function process
A.13.2c (p176) - no prototype of function process
A.13.4c (p179) - multiple definition of variable n
A.13.5c (pp180,181) - no prototype of function process
A.13.6c (p182) - broken, no definition of a function, no prototype of process
A.13.8c (pp184,185) - variable var is not defined
A.13.9c (p186) - syntax error in line 26, no newline between omp directive and compound statement
A.13.10c (pp187,188) - omp_lock_t not defined, missing #include <omp.h>

Re: errors in tasking examples

PostPosted: Tue Jan 29, 2008 3:06 pm
by lfm
Thanks. Does C require a prototype?

Re: errors in tasking examples

PostPosted: Wed Jan 30, 2008 4:42 am
by jakub
Depends. ISO C89 does not, ISO C99 does and so does C++98. As the examples are marked C/C++, guess they should be valid C89/C99/C++98.