[clug] sockets compiling advice

Martin Pool mbp at sourcefrog.net
Mon Jan 19 01:19:28 GMT 2004


On 18 Jan 2004, James Macnicol <jamesm at ee.adfa.edu.au> wrote:

> 	i.e. if you replace gcc with g++ on the command line it works.
> Gcc isn't intelligent enough to figure out if source is C++ or not, you
> really need to use the correct compiler.

Of course it knows it's C++, otherwise you would get syntax errors for
"namespace" and so on.  It just doesn't set the default libraries
unless you say g++.

-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/linux/attachments/20040119/8929d397/attachment.bin


More information about the linux mailing list