By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,440 Members | 1,420 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,440 IT Pros & Developers. It's quick & easy.

C4275 compile warning

P: n/a
I am getting this error:

asn-buf.h(133) : warning C4275: non dll-interface class
'std::basic_streambuf<char,struct std::char_traits<char'
used as base for dll-interface class 'SNACC::AsnRvsBuf'
asn-buf.h(132) : see declaration of 'AsnRvsBuf'

The line causing the problem is:
class __declspec(dllexport) AsnRvsBuf : public std::streambuf

What is the problem and how do I resolve?
Dec 27 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Angus wrote:
I am getting this error:

asn-buf.h(133) : warning C4275: non dll-interface class
'std::basic_streambuf<char,struct std::char_traits<char'
used as base for dll-interface class 'SNACC::AsnRvsBuf'
asn-buf.h(132) : see declaration of 'AsnRvsBuf'

The line causing the problem is:
class __declspec(dllexport) AsnRvsBuf : public std::streambuf

What is the problem and how do I resolve?
Ask on a newsgroup dedicated to your platform. DLLs are
platform-specific and off-topic here (see
http://www.parashift.com/c++-faq-lit....html#faq-5.9).

Cheers! --M

Dec 27 '06 #2

P: n/a
Angus wrote:
What is the problem and how do I resolve?
Use a platform with real shared libraries.

Dec 27 '06 #3

P: n/a

Angus wrote:
I am getting this error:

asn-buf.h(133) : warning C4275: non dll-interface class
'std::basic_streambuf<char,struct std::char_traits<char'
used as base for dll-interface class 'SNACC::AsnRvsBuf'
asn-buf.h(132) : see declaration of 'AsnRvsBuf'

The line causing the problem is:
class __declspec(dllexport) AsnRvsBuf : public std::streambuf

What is the problem and how do I resolve?
There is no problem to resolve. Disable the warning. Visual Studio
often goes ape shit over template instantiations in DLL projects and
spews a bunch of bogus warnings like the above.

Dec 27 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.