473,385 Members | 1,661 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

C4275 compile warning

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
3 5561
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
Angus wrote:
What is the problem and how do I resolve?
Use a platform with real shared libraries.

Dec 27 '06 #3

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Adam McCarthy | last post by:
I'm trying to get a cross compiler working for arm-wince-pe. This is the output for the primes Pyrex example. If I compile simple Hello, World's etc, it works fine, but for some reason Python...
0
by: ReaprZero | last post by:
Hi, I'm using Cygwin and ActiveState perl to try to compile a sample application using SWIG. I'm using the short tutorial from http://www.swig.org/tutorial.html (the perl part of it), but with a...
8
by: Michael L. Hostbaek | last post by:
Hi, I am trying to compile a piece of software, on a FreeBSD system. gcc version 2.95.4 When compiling, I get lots of these warnings: --- logger.c: In function `cf_logger_init':
1
by: electrixnow | last post by:
Help!, I need to compile this code with static libs so it run on another XP machine that does'nt have MS Studio installed. When I compile now I get an ERROR: 1>------ Rebuild All started:...
0
by: Jérôme Le Bougeant | last post by:
Hello (and sorry for my English), I downloaded the VideoCapture module on the http://videocapture.sourceforge.net/ site. I tested it with a webcam and that functions. Now I want to...
1
by: å¼ æ²ˆé¹ | last post by:
How to compile the HelloWorld of boost.asio? Maybe this is a stupid problem , but I really don't konw how to find the right way. My compile environment is WinXP, Msys , MinGw , G++ 3.4.2,...
3
by: mrmattborja | last post by:
Hello, Here is a program I'm playing around with for fun in the process of learning C. The objective is to create a function filesize() and call it from within the main() section to retrieve the...
92
by: Heinrich Pumpernickel | last post by:
what does this warning mean ? #include <stdio.h> int main() { long l = 100; printf("l is %li\n", l * 10L);
21
by: Roman Mashak | last post by:
Hello, given a simple code: #include <math.h> long hyp(long height, long base) { return sqrt(height * height + base * base); }
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.