public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc installation
@ 2003-12-15 18:31 Pranav Sharma, Noida
  2003-12-16  4:19 ` Bharathi S
  0 siblings, 1 reply; 4+ messages in thread
From: Pranav Sharma, Noida @ 2003-12-15 18:31 UTC (permalink / raw)
  To: gcc-help

Hi All,

I am installing gcc on Sun sparc v480 machine. When I am giving the
./configure command, the following error messege is reported.

# ./configure

loading cache ./config.cache
checking LIBRARY_PATH variable... ok
checking GCC_EXEC_PREFIX variable... ok
checking host system type... sparc-sun-solaris2.8
checking target system type... sparc-sun-solaris2.8
checking build system type... sparc-sun-solaris2.8
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH

The output of my echo $PATH is :
# echo $PATH
/opt/CTEact/bin:/opt/SUNWexplo/bin:/opt/sun/bin:/usr/sbin:/usr/bin:/usr/ccs/
bin:/usr/openwin/bin:/usr/dt/bin:/usr/platform/SUNW,Sun-Fire-480R/sbin:/usr/
ucb

And when I give the cc command on prompt, I get the following messege.
# cc

/usr/ucb/cc:  language optional software package not installed


Can anyone help me finding where I am going wrong and what should I correct.

Thanks & Regards
Pranav Sharma

^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: Extensions in g++ to compile C-code
@ 2003-12-16  9:14 Raghunath L- CTD, Chennai.
  0 siblings, 0 replies; 4+ 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] 4+ messages in thread

end of thread, other threads:[~2003-12-16  9:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-15 18:31 gcc installation Pranav Sharma, Noida
2003-12-16  4:19 ` Bharathi S
2003-12-16  8:48   ` Extensions in g++ to compile C-code Megha Murarka
2003-12-16  9:14 Raghunath L- CTD, Chennai.

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).