* RE: Extensions in g++ to compile C-code
@ 2003-12-16 9:14 Raghunath L- CTD, Chennai.
0 siblings, 0 replies; 2+ messages in thread
From: Raghunath L- CTD, Chennai. @ 2003-12-16 9:14 UTC (permalink / raw)
To: Megha Murarka; +Cc: gcc-help
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Extensions in g++ to compile C-code
2003-12-16 4:19 gcc installation Bharathi S
@ 2003-12-16 8:48 ` Megha Murarka
0 siblings, 0 replies; 2+ messages in thread
From: Megha Murarka @ 2003-12-16 8:48 UTC (permalink / raw)
To: gcc-help
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-12-16 9:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-16 9:14 Extensions in g++ to compile C-code Raghunath L- CTD, Chennai.
-- 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
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).