apostrophe27
asked on
Error LNK2005: _DllMain@12 already defined
I'm trying to add a dialog box to an existing dl that doesn't have any. When I do, I get "error LNK2005: _DllMain@12 already defined". I've read that I need to delete the existing DLLMain in my project to get rid of the error. After deleting it, I get error "LNK1149: output filename matches input filename...."
How to I get this to work?
To get resolve this linker error, use the #pragma comment(lib,"YourLibfile.l ib")
or you need to change the out put path of you library.
or you need to change the out put path of you library.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://support.microsoft.com/kb/148652