Re: [AD] Proposal for first step towards new api |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> When building your DLL, you typically create a header file that contains
> the function prototypes and/or classes you are exporting, and add the
> __declspec(dllexport) to the declarations in the header file.
How do you tell the linker to export that symbol and not this one from an
object file ?
my_dll.c:
int exported_count;
int internal_count;
int exported_register_func()
{...}
int internal_register_func()
{...}
Don't you have to include the header in the source file ? Don't the
declaration with __declspec(dllexport) and the definition without it
conflict then ?
--
Eric Botcazou
ebotcazou@xxxxxxxxxx