To avoid some linking errors
deadalnix
deadalnix at gmail.com
Sun Oct 28 13:34:03 PDT 2012
Le 28/10/2012 18:17, Walter Bright a écrit :
> On 10/28/2012 6:39 AM, bearophile wrote:
>> This code compiles with no errors, and then later the linker gives a
>> "Symbol
>> Undefined":
>> [...]
> > (and give a nice compilation error if it's missing)?
>
> It already gives a nice error "Symbol Undefined". I don't understand why
> this is a problem.
>
> void foo() { } // defined here
> void foo(); // defined elsewhere
>
> No need for anything more.
As Andrei stated, the linker's native language is encrypted klingon.
More information about the Digitalmars-d
mailing list