473,322 Members | 1,409 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,322 software developers and data experts.

Regarding VC++ warnings in level4

18
Can anyone help me in removing these type of warnings?? Its urgent.

C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xlocnum(412) : warning C4512: 'num_get<char,class std::istreambuf_iterator<char,struct std::char_traits<char> > >' : assignment operator could not be generated
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xlocnum(649) : see reference to class template instantiation 'std::num_get<char,class std::istreambuf_iterator<char,struct std::char_traits<char> > >' being compiled
Feb 5 '07 #1
3 2311
Banfa
9,065 Expert Mod 8TB
This is what the VC++ help has to say about this

Compiler Warning (level 3) C4512
'class' : assignment operator could not be generated

The compiler was unable to generate an assignment operator for the given class. No assignment operator was created.

This warning can be caused by having an assignment operator for the base class that is not accessible by the derived class.

This warning can be avoided by specifying a user-defined assignment operator for the class.
Feb 5 '07 #2
tcsvikr
18
This is what the VC++ help has to say about this

Compiler Warning (level 3) C4512
'class' : assignment operator could not be generated

The compiler was unable to generate an assignment operator for the given class. No assignment operator was created.

This warning can be caused by having an assignment operator for the base class that is not accessible by the derived class.

This warning can be avoided by specifying a user-defined assignment operator for the class.


Thank you very much for your suggestion...I am not well acquainted with C++..Can you pls elucidate the usage and syntax of assignment operator...Will be grateful for your help..
Feb 6 '07 #3
Banfa
9,065 Expert Mod 8TB
In VC++ the best level of warning you can get is Level 4. Unfortunately Microsoft do not have the skill to write their own header files so they compile without warnings at level 4, in fact the normally produce a ton of warning masking any real errors or warnings.

For this reason most people using MSVC++ using warning level 3 where it is possible to get a program to compile without warnings.
Feb 6 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Amit Kulkarni | last post by:
1. I have an old VC++ 6.0 project , which links with a third party library. 2. During link , the linker warns with LNK4099 : asklibd.lib(SCURR.OBJ) : warning LNK4099: PDB "vc60.pdb" was not found...
5
by: Pardeep Singh | last post by:
Hi all, I am migrating modules from VC++6 to VC++7. All the dll and exe modules are compiled successfully, but the applications crashes at startup. Please guide me what are the proper steps to...
7
by: Gernot Frisch | last post by:
Hi, we have to use stlport here, but With a code like this: void DoSomething(int english_version) { // make no use of english_version }
2
by: Petded | last post by:
Hi, i found this extract regarding vc++.net express edition from MS. Quote: Make certain that you edit the Text property and not the (Name) property beneath the Design category, which also...
0
by: parekh | last post by:
Hi All , I am facing a problem wherein my VB project is not recognizing a change in the argument list of a method ( the method itself being declared and defined in another VC++ project and it...
1
by: stromhau | last post by:
Ok, i have a file with main and an additional .cpp file i include in the main file but i get a lot of strange warnings when including. Both files compile just great separately. It seems that it have...
2
by: stromhau | last post by:
When compiling i get these warnings and i dont know why. Can anyone please explain ? Tommy, 1>------ Build started: Project: sdl, Configuration: Release Win32 ------ 1>Compiling......
6
by: sathiyamurthy | last post by:
Hi all I am working in VC++ domain. i need one help regarding vc++ exception handling. how to use exception handling in vc++? how to get the error message? how to avoid the runtime error. i...
0
by: Arti | last post by:
I want to use Windows Forms(Managed C++) and also existing VC6 backend static libraries(MFC). Can anybody suggest me which template in VS2005 is more appropriate for this scenario: 1) VC++ ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.