Link to home
Start Free TrialLog in
Avatar of 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?
Avatar of Subrat (C++ windows/Linux)
Subrat (C++ windows/Linux)
Flag of India image

If ur using MFC and CRT functions, then plz have a look on following link.
To get resolve this linker error, use the #pragma comment(lib,"YourLibfile.lib")
or you need to change the out put path of you library.
Avatar of apostrophe27

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial