On Mon, Oct 07, 2002 at 04:57:29AM -0700, Srinivasa Pradeep wrote:
> 
> I am using gcc and g++ 3.01. I wrote a small socket program 
> in C++ and named the source as test.cpp.  Now  if I compile 
> with g++, it  works  well  and I can run a.out. (I gave the 
> command g++ test.cpp).  But if I try the  same with gcc, it 
> fails during linking.
---end quoted text---

Not doing much RTFM are you ? This is the first few lines of
the gcc man page:

--------------------------<snip>--------------------------
gcc    assumes preprocessed (.i) files are C and assumes C
       style linking.
                     
g++    assumes preprocessed (.i) files are C++ and assumes
       C++ style linking.
-------------------------</snip>--------------------------

How do you expect a c++ style linking with gcc ? These two
commands call different programs.

HTH

Bish

--
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################

Sub : A digital clock for your prompt                LOST #297

If bash is your default shell, you can have a cute digital
clock as your prompt, by adding this to your .bash_profile
Try: PS1='\[\033[36;40m[\t]\[\033[32;40m:\w\$\[\033[m ' 

####<[EMAIL PROTECTED]>####################################
:


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to