definition of dllimport function not allowed
-
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 allowedThanks and Regards,
Antony vasanth
-
Hi!
Check your project settings - in compilation options, you should have LIBNXMC_EXPORTS defined for libnxmc.
Best regards,
Victor -
Hi victor ,
Thanks for your timely help.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login