E2563 Can't import a function being defined (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

This occurs when a function being defined is declared to be __declspec(dllimport).

__declspec(dllimport) f() {
                // f will not be imported since it is defined
        }