473,545 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

compile a file with openmp ,but failed

gcc -g -fopenmp openmp.c -o openmp
cc1: error: unrecognized command line option "-fopenmp"

i wrote a simple openmp.c and wanted to compile it, but i got this
error.
What should i do ?
Thanks

Jul 17 '07 #1
2 3190
firenet <ke********@gma il.comwrote:
gcc -g -fopenmp openmp.c -o openmp
cc1: error: unrecognized command line option "-fopenmp"
i wrote a simple openmp.c and wanted to compile it, but i got this
error.
What should i do ?
Start by asking gcc questions on the appropriate gcc mailing list:
http://gcc.gnu.org/lists.html. (The newsgroups aren't much use.) We
don't discuss gcc here. <ot>However, what part of "unrecogniz ed
command line option" didn't make sense? Have a look at your friendly
gcc man page and/or the friendly web while you're at it.</ot>

--
C. Benson Manica | I *should* know what I'm talking about - if I
cbmanica(at)gma il.com | don't, I need to know. Flames welcome.
Jul 17 '07 #2
firenet wrote:
gcc -g -fopenmp openmp.c -o openmp
cc1: error: unrecognized command line option "-fopenmp"

i wrote a simple openmp.c and wanted to compile it, but i got this
error.
What should i do ?
Try not using the unrecognized command line option "-fopenmp". What did
you think that it should do, anyway? If you really think there is some
needed option that "-fopenmp" might be close to, ask in a gcc newsgroup.
Questions about particular implementation options belong in newsgroups
or mailing lists for those implementations , not in <news:comp.lang .c>,
which is about the C programming language. <otBut no version of gcc
that I have has such an option. </ot>
Jul 17 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1655
by: Rodrigo Perottoni | last post by:
I'm trying compiling and running the OpenMP Benchmark, but I have some problems. Anyone knows how I compiling and running OpenMP? Thank You.
5
3138
by: Vladimir_petter | last post by:
Hello guys, Looks like this technology is comming along with VS2005. Anybody has an expirience of using it along with C++? What are the patterns? Thanks, Vladimir.
1
8503
by: Carl J. Van Arsdall | last post by:
Hey everyone, I know I've posted several questions regarding python and python's parallel capabilities so bear with me as I've never attempted to incite discussion. However, today I'm interested in sparking discussion over having an OpenMP style of interface in python. For those of you familiar with OpenMP, its a pragmatic api for...
0
2026
by: Jérôme Le Bougeant | last post by:
Hello (and sorry for my English), I downloaded the VideoCapture module on the http://videocapture.sourceforge.net/ site. I tested it with a webcam and that functions. Now I want to compile his file .cpp (vidcap.cpp). Thereafter, the idea is to be able to modify the code to include my own modifications.
2
2787
by: eva2002 | last post by:
Hi all, I am current engage in a project that require me to create object files. However I am struck in compiling all the object files together. I tend to get lots of undefined reference some of which is from iostream and others are from "new" and "delete" This is what i did, test: myprog.o myprog2.o myprog3.o icc myprog.o myprog2.o...
7
7975
by: s.z.s | last post by:
Hi! Is anybody using an openmp compiler under cygwin? I tried to install gcc 4.2.2 without success and now I'm looking for alternatives. Thanks, Steffen
6
2159
by: Renato Perini | last post by:
Hi all!!! I'm trying to find a *good* book about OpenMP and C, but I can't find anything specific. Can you advice me some good (and updated) books about OpenMP using the C interface? I'd like a book that covers everything from the ground up. Thank you in advance.
2
6344
by: akhilesh.noida | last post by:
I am trying to compile glibc-2.5 for ARM based board. But I am getting errors while configuring it. Please check and give your inputs for resolving this. configure command : $ ../glibc-2.5/configure --prefix=/mnt/new/Mars/glibc_HQ_test/GLIBC/ install/ --with-__thread --enable-kernel=2.6.11 --enable-shared
0
1153
by: Alien | last post by:
Hi, I am having bit of confusion about !$OPENMP DO/!$OPENMP END DO and !$OPENMP PARALLEL DO/!$OPENMP END PARALLEL DO directives. Having looked at my notes, the only difference I can find is that the "parallel do" has the shared clause while the "!$OPENMP DO" doesn't have shared clause but has ORDERED. And few bits like REDUCTION while...
0
7486
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7676
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7442
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6001
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5347
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4965
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3473
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3456
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
729
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.