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.
- Posts: 2
- Joined: Thu Jul 28, 2011 7:05 am
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
- Posts: 23
- Joined: Mon Nov 26, 2007 2:13 am
Return to Using OpenMP - The Book and Examples
Who is online
Users browsing this forum: No registered users and 0 guests