errors in tasking examples

The public comment period closed January 31, 2008. This forum is now locked (read only).
Forum rules
The OpenMP Forums are now closed to new posts. Please visit Stack Overflow if you are in need of help: https://stackoverflow.com/questions/tagged/openmp
Locked
dmikh

errors in tasking examples

Post 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>

lfm
Posts: 135
Joined: Sun Oct 21, 2007 4:58 pm
Location: OpenMP ARB

Re: errors in tasking examples

Post by lfm »

Thanks. Does C require a prototype?

jakub
Posts: 74
Joined: Fri Oct 26, 2007 3:19 am

Re: errors in tasking examples

Post 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.

Locked