all groups > sql server data mining > january 2006 >
You're in the

sql server data mining

group:

error compiling tutorial plugin


Re: error compiling tutorial plugin Bogdan Crivat [MSFT]
1/25/2006 10:17:14 AM
sql server data mining:
What error messages did you get?
In general, it should work fine with Visual C++ 2005.
--
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. It is for newsgroup
purposes only.

thanks,
bogdan

[quoted text, click to view]

error compiling tutorial plugin anonymous_user NO[at]SPAM sqlserverdatamining.com
1/25/2006 6:00:08 PM
Can I build the last tutorial plugin using Visual C++ 2005 Express, Windows 2000 adv srv SP4 and Windows® Server 2003 SP1 Platform SDK?

I'm asking because I received several error messages while compiling the last tutorial.

thanks

Re: error compiling tutorial plugin anonymous_user NO[at]SPAM sqlserverdatamining.com
1/25/2006 9:40:12 PM
[quoted text, click to view]

Thanks for your attention.

To avoid interference, I have started from scratch in a new partition and have installed:

Windows XP SP2,
Visual C++ 2005 Express,
Windows® Server 2003 SP1 Platform SDK,
SQL Server 2005 Trial
The last tutorial plugin

I have compiled the CompletedDemo solution.

The 9 error and 4 warning messages are:
c:\program files\microsoft platform sdk\include\atl\atlbase.h(513) : warning C4996: '_vsnprintf' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdio.h(339) : see declaration of '_vsnprintf'
Message: 'This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
c:\program files\microsoft platform sdk\include\atl\atlbase.h(537) : warning C4996: '_vsnprintf' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdio.h(339) : see declaration of '_vsnprintf'
Message: 'This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
c:\program files\microsoft platform sdk\include\atl\atlbase.h(561) : warning C4996: '_vsnwprintf' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdio.h(450) : see declaration of '_vsnwprintf'
Message: 'This function or variable may be unsafe. Consider using _vsnwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
c:\program files\microsoft platform sdk\include\atl\atlbase.h(584) : warning C4996: '_vsnwprintf' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdio.h(450) : see declaration of '_vsnwprintf'
Message: 'This function or variable may be unsafe. Consider using _vsnwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
c:\program files\microsoft platform sdk\include\atl\atlcom.h(3242) : error C2065: '_Module' : undeclared identifier
c:\program files\microsoft platform sdk\include\atl\atlcom.h(3242) : error C2228: left of '.Lock' must have class/struct/union
type is ''unknown-type''
c:\program files\microsoft platform sdk\include\atl\atlcom.h(3244) : error C2228: left of '.Unlock' must have class/struct/union
type is ''unknown-type''
c:\program files\microsoft platform sdk\include\atl\atlcom.h(3366) : error C2228: left of '.CreateInstance' must have class/struct/union
type is ''unknown-type''
c:\program files\microsoft platform sdk\include\atl\atlcom.h(3373) : error C2228: left of '.Lock' must have class/struct/union
type is ''unknown-type''
c:\program files\microsoft platform sdk\include\atl\atlcom.h(3375) : error C2228: left of '.Unlock' must have class/struct/union
type is ''unknown-type''
c:\program files\microsoft platform sdk\include\atl\atlcom.h(3641) : error C2228: left of '.m_csTypeInfoHolder' must have class/struct/union
type is ''unknown-type''
c:\program files\microsoft platform sdk\include\atl\atlcom.h(3658) : error C2228: left of '.AddTermFunc' must have class/struct/union
type is ''unknown-type''
c:\program files\microsoft platform sdk\include\atl\atlcom.h(3667) : error C2228: left of '.m_csTypeInfoHolder' must have class/struct/union
Re: error compiling tutorial plugin Bogdan Crivat [MSFT]
1/30/2006 1:14:16 PM

It seems that you are using a very old version of the sample. The warnings
were fixed before the release of SQL Server 2005, and the errors suggest
that the project does not include the apropriate ATL headers.

You should download the latest version from
http://www.sqlserverdatamining.com/dmcommunity/_downloads/2384.aspx

Please let us know if you run into any othe problems

--
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. It is for newsgroup
purposes only.

thanks,
bogdan

[quoted text, click to view]

AddThis Social Bookmark Button