Re: [Solved] C++ Compilation

2005-09-28 Thread Joe Smith

Of course, you can always use gcc if you remeber to link against
libstdc++ (I think).
gcc is the universal front-end. It will compile and link anything supported 
by the compiler collection.


However that said g++ is better for both compiling and linking c++ code, 
because it uses slightly different depencency tracking etc. 




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [Solved] C++ Compilation

2005-09-27 Thread Roberto C. Sanchez
On Wed, Sep 28, 2005 at 11:32:44AM +1000, Byron Hillis wrote:
>  
> > You're using the C compiler front-end to compile and link C++ code.
> > Don't do that.
> > 
> > You should use the C++ compiler front-end to compile and link 
> > C++ code (especially link!)
> > 
> > You should be using g++ for both of these commands.
> 
> Thanks, feel a bit stupid now. I think I was confused cause man g++ 
> brings up the man page for gcc, so I thought they were the same.
> 
> > 
> > In a makefile you really want to use variables, anyway.
> > 
> 
> Yeah, I know, I'm slowly learning things bit by bit. 

Of course, you can always use gcc if you remeber to link against
libstdc++ (I think).

-Roberto

-- 
Roberto C. Sanchez
http://familiasanchez.net/~roberto


pgpyURQITFv4M.pgp
Description: PGP signature


RE: [Solved] C++ Compilation

2005-09-27 Thread Byron Hillis
 
> You're using the C compiler front-end to compile and link C++ code.
> Don't do that.
> 
> You should use the C++ compiler front-end to compile and link 
> C++ code (especially link!)
> 
> You should be using g++ for both of these commands.

Thanks, feel a bit stupid now. I think I was confused cause man g++ 
brings up the man page for gcc, so I thought they were the same.

> 
> In a makefile you really want to use variables, anyway.
> 

Yeah, I know, I'm slowly learning things bit by bit. 

Thanks for your help,

Byron



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]