Re: Convert C-Builder program to Delphi?

From: Maarten Wiltink (maarten_at_kittensandcats.net)
Date: 03/30/05


Date: Wed, 30 Mar 2005 11:22:29 +0200


"W. D." <GoogleGroups@US-Webmasters.com> wrote in message
news:1112170948.393836.139430@o13g2000cwo.googlegroups.com...

> Currently, I am getting several of these errors:
>
> 'Unsatisfied forward or external declaration'
>
> They occur in the Interface section, even though several
> versions of these Overloaded functions are in the
> Implementation section (and otherwise compile OK).
>
> One would think that if they exist in the Implematation
> section, and they didn't match the templates in the
> Interface section, there would be some sort of
> mismatch error. But for some reason, the compiler
> doesn't think they exist.

Overloading makes this harder for the compiler.

> I've gotten this type of error when the functions were
> owned by a Class. The solution is to prepend the
> name of the class onto the function:
>
> TheFunction();
>
> becomes:
>
> TheClassName.TheFunction();
>
>
> Since these functions aren't contained in a class, what
> could be preventing the compiler from finding them?

Hard to say without seeing code. Stripped-down code, please.
Ten to one you'll find the error you made before ever posting.

The ground rule is quite simple. "The compiler is always right."

Groetjes,
Maarten Wiltink



Relevant Pages

  • Re: Convert C-Builder program to Delphi?
    ... > They occur in the Interface section, ... Overloading makes this harder for the compiler. ... Hard to say without seeing code. ...
    (comp.lang.pascal.delphi.misc)
  • Re: function overloading
    ... Assembly code in a C program needs to interface with compiled C code, ... so it needs information from the compiler. ... which could then be fed to the assembler. ... overloading syntax, specifically.) ...
    (comp.std.c)
  • Re: C# 3.0: no additions to where clause? dang.
    ... interface MyFunc, interface operator+=, interface get ... Generics can be overloaded based on the number of type arguments. ... because if the compiler generates calls ... What would be useful would be constraint overloading: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: MFC and c++ problems
    ... compiler to generate code that is architecturally nonsensical. ... So a design in which a control has any syntactic knowledge of any container of itself ... GetParent->SendMessage is the interface of choice, ...
    (microsoft.public.vc.mfc)
  • Re: Win32 API and gfortran
    ... write out a module containing only interface blocks and compile the ... that the /iface switches and ATTRIBUTES directives change the compiler ... arguments are passed in the normal Fortran way ...
    (comp.lang.fortran)