Click here to Skip to main content
15,901,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a static lib file and it's corresponding header files...
now am trying to develop dll by writing a wrapper function for the functions in static lib
and now i am facing the above linker error

Project setting:

Use MFC in a Shared DLL
Multi-threaded Debug DLL (/MDd)
Ignore specific library : uafxcwd.lib
Posted

1 solution

Normally you wrap the header like this:
#ifndef filename_h
#define filename_h
        statement sequence
#endif


This will prevent multiple inclusions.

Good luck!
 
Share this answer
 
Comments
s lokesh 22-Sep-10 6:22am    
Reason for my vote of 5
Automatic vote of 5 for accepting answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900