03-09-2009 11:58 AM
I'm wondering how it is I can have an exported function protype declared within a dll and no implementation for it and it still builds without error?
Doen't an .exe build break when this happens?
Menchar
03-09-2009 06:41 PM
03-10-2009 05:34 AM
for what i have tested, the compiler ignores the incomplete exported function: the function is not listed in the exported symbols of the resulting binary.
it is the same for an executable: if you declare a function but do not define it, the function is ignored. a link error is triggered only if you call the function from inside your code.03-10-2009 11:26 AM
Well, if it isn't really exported then at least it won't allow a client to try and invoke a non-existent function, which is what I thought might be happening.
I wonder what the thinking was in C on this issue - maybe it's a compatability thing since C doesn't require prototypes.
Thanks.