Error while compiling the code

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

Error while compiling the code

Postby chadhas » Thu Jul 28, 2011 7:14 am

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.


Re: Error while compiling the code

Postby ruud » Tue Aug 09, 2011 7:28 pm

Hi Sachin,

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