POV-Ray : Newsgroups : povray.unix : Re: Input file size restrictions?? : Re: Input file size restrictions?? Server Time
28 Jun 2024 23:02:07 EDT (-0400)
  Re: Input file size restrictions??  
From: Thorsten Froehlich
Date: 7 May 2006 09:45:42
Message: <445dfa06$1@news.povray.org>
Warp wrote:
>   gcc and icc have no problems whatsoever in compiling C++ source files
> as long as they are named appropriately (ie. eg. ".cc" or ".cpp" or
> whatever). However, when they are used as a linker they have no way of
> knowing that they should be linking in C++ mode instead of C mode.

Actually, they do: The name mangling should be different, with C using 
basically unmangled names, while for C++ the ABI is rather specific. After 
all, that is why there is 'extern "C" ' in C++ ...

As such, unless something is very wrong, a linker can easily auto-detect 
what it is dealing with. The C++ files will have mangled names according to 
the ABI specification, assuming they do actually declare any C++ 'stuff'.

	Thorsten


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.