definition of dllimport function not allowed

Started by antonyvasanth, November 13, 2008, 10:52:28 AM

Previous topic - Next topic

antonyvasanth

Sir/Madam,

I am getting most of the errors as follows when i compiled with visual c++ 2008 enterprise edition.Kindly help me to solve the same .

>c:\netxms-0.2.22\netxms-0.2.22\src\client\console\libnxmc\alarms.cpp(40) : error C2491: 'NXMCInitAlarms' : definition of dllimport function not allowed
1>c:\netxms-0.2.22\netxms-0.2.22\src\client\console\libnxmc\alarms.cpp(54) : error C2491: 'NXMCUpdateAlarms' : definition of dllimport function not allowed
1>c:\netxms-0.2.22\netxms-0.2.22\src\client\console\libnxmc\alarms.cpp(93) : error C2491: 'NXMCGetAlarmList' : definition of dllimport function not allowed
1>c:\netxms-0.2.22\netxms-0.2.22\src\client\console\libnxmc\alarms.cpp(104) : error C2491: 'NXMCUnlockAlarmList' : definition of dllimport function not allowed


Thanks and Regards,

Antony vasanth

Victor Kirhenshtein

Hi!

Check your project settings - in compilation options, you should have LIBNXMC_EXPORTS defined for libnxmc.

Best regards,
Victor

antonyvasanth