|
-
May 28th, 2008, 04:21 PM
#3
Re: A compiler bug?
 Originally Posted by Codeplug
How is "MYDLL_API" (conditionaly) defined?
The dll is generated through project wizard in VC2003. In that sense MYDLL_API is standard:
Code:
#ifdef MYDLL_EXPORTS
#define MYDLL_API __declspec(dllexport)
#else
#define MYDLL_API __declspec(dllimport)
#endif
The dll indeed exports the function, but apparently with incorrect mangling.
Please note that there is no problem if the function is made non-constant OR a second non-constant member function is added.
 Originally Posted by Codeplug
Can you zip up a minimal, console solution the demonstrates the issue?
I am not sure if I can reproduce the problem in a small test dll. But I may give a try.
Thanks
SB
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|