errors in tasking examples

The public comment period closed January 31, 2008. This forum is now locked (read only).

errors in tasking examples

Postby dmikh » Thu Jan 24, 2008 4:57 am

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>
dmikh
 
Posts: 5
Joined: Wed Jan 23, 2008 8:44 am

Re: errors in tasking examples

Postby lfm » Tue Jan 29, 2008 3:06 pm

Thanks. Does C require a prototype?
lfm
 
Posts: 135
Joined: Sun Oct 21, 2007 4:58 pm
Location: OpenMP ARB

Re: errors in tasking examples

Postby jakub » Wed Jan 30, 2008 4:42 am

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.
jakub
 
Posts: 74
Joined: Fri Oct 26, 2007 3:19 am


Return to Draft 3.0 Public Comment

Who is online

Users browsing this forum: No registered users and 2 guests

cron