Use this forum to discuss the book: Using OpenMP - Portable Shared Memory Parallel Programming, by Barbara Chapman, Gabriele Jost and Ruud van der Pas Read the viewtopic.php?f=8&t=465
for book info and to download the examples. Post your feedback about the book and examples to this forum
I am trying to compile a simple application on Sun, but i am getting the following error.
error: expected declaration specifiers before '#pragma'
My gcc version is 4.4.2.
Any clues what's wrong ? The statement before is properly terminated and is just an assignment.
It is hard to guess without seeing the relevant part of the code. Could you perhaps post this? If you post source I can compile I can also verify what the Oracle/Sun compiler does.
Kind regards, Ruud
Return to Using OpenMP - The Book and Examples
Who is online
Users browsing this forum: No registered users and 1 guest