From: "Raghunath L- CTD, Chennai." <raghunathl@ctd.hcltech.com>
To: Megha Murarka <megha@poseidontech.com>
Cc: gcc-help@gcc.gnu.org
Subject: RE: Extensions in g++ to compile C-code
Date: Tue, 16 Dec 2003 09:14:00 -0000 [thread overview]
Message-ID: <9F54AA5915501745A385AF7CBDC7E8718F9CEF@HARITHA.ctd.hcltech.com> (raw)
Hi All,
I have a library whose source code is written in C language.
The function definition syntax followed is of the form : -
int foo(a,b)
int a;
int b;
{
return a+b;
}
If i need to compile this using g++ compiler, are there any extensions
available to compile the same code without changing the code . If any other
way, pls suggest.
Thanks in advance,
Regards,
Megha.
----------------------------------------------------------------------------
--------------------------------
Hi Megha,
U can use g++ -x c test.c // where test.c is completely written in 'C'.
// -x option of g++ is used to
specify the language of source
HTH,
Raghu.
next reply other threads:[~2003-12-16 9:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-16 9:14 Raghunath L- CTD, Chennai. [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-12-16 4:19 gcc installation Bharathi S
2003-12-16 8:48 ` Extensions in g++ to compile C-code Megha Murarka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9F54AA5915501745A385AF7CBDC7E8718F9CEF@HARITHA.ctd.hcltech.com \
--to=raghunathl@ctd.hcltech.com \
--cc=gcc-help@gcc.gnu.org \
--cc=megha@poseidontech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).