Connecting Tech Pros Worldwide Forums | Help | Site Map

DLL Linkage errors in vc++

Member
 
Join Date: Feb 2007
Posts: 105
#1: Mar 1 '07
Hi all,

I have a class cmodel and member function mem( ) in one of my source files I have included in my project. When I build the project I get linking erors like

warning C2473: cmodel::mem : inconsistent dll linkage

long cmodel::mem( )
{
return a->mem( );
}

It shows the error at the starting brace.Could anyone please give me suggestions of how to solve it if possible.Thanks

Member
 
Join Date: Feb 2007
Posts: 105
#2: Mar 1 '07

re: DLL Linkage errors in vc++


Hi all,

I was able to solve this problem as I did not include some preprocessor definitions to my project properties.Thanks
Reply