NetXMS Support Forum

Development => Windows => Topic started by: antonyvasanth on November 13, 2008, 10:52:28 AM

Title: definition of dllimport function not allowed
Post by: antonyvasanth on November 13, 2008, 10:52:28 AM
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
Title: Re: definition of dllimport function not allowed
Post by: Victor Kirhenshtein on November 14, 2008, 11:17:44 AM
Hi!

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

Best regards,
Victor
Title: Re: definition of dllimport function not allowed
Post by: antonyvasanth on November 17, 2008, 08:11:34 AM
Hi victor ,

Thanks for your timely help.