473,409 Members | 2,063 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

using Dev-C++ to compile ONLY C code ?

Hi there,

don't know if it's the right group, but I'll try anyway. Sorry if I'm OT,
anybody can be so patient to tell me the right group ? Thanks :)

Anyway, the question is:

I know I can write C programs using a C++ environment like Dev-C++. However,
I'd like to know if there are some options that allow Dev to ignore C++
syntax and act as a C-only compiler. Is this possible ? And, if not, can
anybody suggest me a free C compiler under Windows ?

Thanks a lot.

--
Emanuele Blanco
PGP Key Available - http://studenti.unina.it/~emblanco/key.asc
Nov 14 '05 #1
1 2368
"Emanuele Blanco" <ma***@despammed.com> wrote:
Hi there,

don't know if it's the right group, but I'll try anyway. Sorry if I'm OT,
anybody can be so patient to tell me the right group ? Thanks :)

Anyway, the question is:

I know I can write C programs using a C++ environment like Dev-C++. However,
I'd like to know if there are some options that allow Dev to ignore C++
syntax and act as a C-only compiler. Is this possible ?


<OT>
Since Dev-C++ is in fact an IDE that comes with the MingW port of gcc,
the answer is, of course, yes. Name your files <name>.c and add the
following options to the compiler command line in order to invoke gcc
in C89 conforming mode:

-W -Wall -O<n> -std=c89 -pedantic

Notes:
1. replace <n> with a number in [1;3], or s
2. -std=c89 replaces the deprecated -ansi option
3. -std=c99 is possible too, but several C99 features have not
been implemented in gcc yet

</OT>

Please direct further implementation specific questions to either
gnu.gcc.help or the online forum at http://www.bloodshed.net/forum .

For standard C language questions comp.lang.c is however /the/ place
to ask, just be sure to read the FAQ and welcome message (links
provided in signature) and lurk for a while before posting.

HTH, good luck
Regards
--
Irrwahn Grausewitz (ir*******@freenet.de)
welcome to clc: http://www.ungerhu.com/jxh/clc.welcome.txt
clc faq-list : http://www.faqs.org/faqs/C-faq/faq/
clc OT guide : http://benpfaff.org/writings/clc/off-topic.html
Nov 14 '05 #2

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

Similar topics

1
by: John Doe | last post by:
Does anyone understand what a 'raw device number' is with respect os.major() and os.minor() Found in os-file-dir.html, section 6.1.4, os.major() description is: major(device) Extracts a...
5
by: Lars Schouw | last post by:
I have downloaded the newest boos release. I am havng problems building boost using the intel C++ 8.0 compiler. It looks as if bjam can't fine the icl.exe compiler executable itself. This file is...
4
by: Jakub \Quetz\ Lambrych | last post by:
I would like to know if anybody tried to install Mingw 3.4.2 on Dev-Cpp 4.9.9.0? The problem is that after installing official Dev-packs (from sf.net) compilator doesn't want to work (i...
12
by: pauldepstein | last post by:
Could anyone explain the rule the Dev C++ compiler uses for deciding whether to convert a display of a word to bold font? A first attempt at an answer could be "Words are displayed in bold when...
5
by: sql-db2-dba | last post by:
We have DB2 UDB v8.1 fixpak3 on AIX 5. Production and Development configuarations (at least for DB2) are identical albeit production is a 2-way server while development has only one processor....
1
by: John | last post by:
1. can I use RewritePath in global.asax workin on Dev 2005 express? the self IIS using some port So I dont know if thats make the problam of 404 2. can i make new project in Dev 2005 express...
3
by: mikem76 | last post by:
How do I automatically redirect stdout and stderr when using os.popen2 to start a long running process. If the process prints a lot of stuff to stdout it will eventually stop because it runs out...
0
by: Shival | last post by:
Hi, I have a Device that will be used by dentist to take their paitient teaath pics. this Device is having a click button from which the device takes pics. The Device is configured to my OS...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...
0
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...

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.