473,594 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2392
"Emanuele Blanco" <ma***@despamme d.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*******@free net.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
2503
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 device major number from a raw device number. New in version 2.3. The problem is, after searching I can only find two references to 'raw
5
3617
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 installed under this directory C:\Program Files\Intel\CPP\Compiler80\Ia32\Bin Any ideas what I do wrong? I try this: run the iclvars.bat batch file.
4
3179
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 discovered that they didn't put ming-utils pack). So I tried to download "raw" meterial from www.mingw.org: gcc-core binutils gcc-g++
12
2736
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 they have an assigned meaning in c++". However, this answer doesn't quite work -- "main" does not get converted automatically to bold, and nor do words for classes of streams such as "iostream" for example. Surely, such words do have assigned...
5
6321
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. Tables and indexes have the same schema. In fact, the dev database was taken from a prod backup recently. Size of the tables differ slightly. Yet, on a given query (with 4 tables joined), it took 30-50 times longer to run in prod than on development....
1
1223
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 that work as main directory for example when i run the project it display http://localhost:4443/Default.aspx
3
3099
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 of buffer space. Once I start reading the stdout file returned by os.popen2 then the process resumes. I know that I could just specify > /dev/null when starting the process but I'd like to know if there is a way to start a process using os.popen2...
0
1420
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 using AMCAP device Driver. I tried capturing the Click event of the Device using WIA 2.0 but using Dim s As String Dim dev As WIA.Device = (New WIA.CommonDialog).ShowSelectDevice For i As Integer = 1 To dev.Events.Count
0
7946
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8253
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8009
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
6661
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5739
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5411
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3903
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1216
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.