Click here to Skip to main content
15,915,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++, STL, and warning level 4 Pin
Chris Losinger1-Nov-05 9:43
professionalChris Losinger1-Nov-05 9:43 
GeneralRe: C++, STL, and warning level 4 Pin
Jim Crafton1-Nov-05 9:45
Jim Crafton1-Nov-05 9:45 
GeneralRe: C++, STL, and warning level 4 Pin
Nemanja Trifunovic1-Nov-05 15:23
Nemanja Trifunovic1-Nov-05 15:23 
AnswerRe: C++, STL, and warning level 4 Pin
Chris Losinger1-Nov-05 9:41
professionalChris Losinger1-Nov-05 9:41 
GeneralRe: C++, STL, and warning level 4 Pin
Jim Crafton1-Nov-05 9:43
Jim Crafton1-Nov-05 9:43 
AnswerRe: C++, STL, and warning level 4 Pin
Rob Caldecott1-Nov-05 9:48
Rob Caldecott1-Nov-05 9:48 
GeneralRe: C++, STL, and warning level 4 Pin
Jim Crafton1-Nov-05 9:53
Jim Crafton1-Nov-05 9:53 
GeneralRe: C++, STL, and warning level 4 Pin
Jim Crafton1-Nov-05 10:28
Jim Crafton1-Nov-05 10:28 
Hmm, well I just created a new console project (in vc6) and changed it's setting to Multi Threaded CRT, on warning level 4.

here's the main:

#include "stdafx.h"

#pragma warning (push)
#pragma warning (disable : 4100)
#pragma warning (disable : 4663)
#pragma warning (disable : 4511)
#pragma warning (disable : 4512)
#pragma warning (disable : 4018)
#pragma warning (disable : 4244)


#include <vector>
#pragma warning (pop)


int main(int , char** )
{
	return 0;
}




And this just creates loads of warnings, in fact the very same ones I have turned off!
So now I try turning off the language extensions.
Voila! All the warnings are gone, but now I get 102 errors like:

c:\program files\microsoft visual studio\vc98\include\utility(81) : error C2146: syntax error : missing ';' before identifier 'iterator_category'

Sigh, oh well, it's just not worth fighting with Smile | :)

I can't see how anyone who uses STL, VC6, and creates DLLs that export C++ classes can compile at warning level 4.




¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

Save an Orange - Use the VCF!

-- modified at 16:29 Tuesday 1st November, 2005
GeneralRe: C++, STL, and warning level 4 Pin
Nemanja Trifunovic1-Nov-05 15:30
Nemanja Trifunovic1-Nov-05 15:30 
AnswerRe: C++, STL, and warning level 4 Pin
S Douglas1-Nov-05 19:30
professionalS Douglas1-Nov-05 19:30 
QuestionNeed assistance accessing FMTID Pin
KaptinKrunch1-Nov-05 8:47
KaptinKrunch1-Nov-05 8:47 
AnswerRe: Need assistance accessing FMTID Pin
Jeffrey Walton1-Nov-05 14:02
Jeffrey Walton1-Nov-05 14:02 
GeneralRe: Need assistance accessing FMTID Pin
KaptinKrunch1-Nov-05 16:47
KaptinKrunch1-Nov-05 16:47 
GeneralRe: Need assistance accessing FMTID Pin
Jeffrey Walton2-Nov-05 2:40
Jeffrey Walton2-Nov-05 2:40 
GeneralRe: Need assistance accessing FMTID Pin
KaptinKrunch3-Nov-05 5:00
KaptinKrunch3-Nov-05 5:00 
GeneralRe: Need assistance accessing FMTID Pin
Jeffrey Walton3-Nov-05 9:21
Jeffrey Walton3-Nov-05 9:21 
QuestionComplete Vector elements deletion Pin
itkid1-Nov-05 6:28
itkid1-Nov-05 6:28 
AnswerRe: Complete Vector elements deletion Pin
Maximilien1-Nov-05 6:34
Maximilien1-Nov-05 6:34 
AnswerRe: Complete Vector elements deletion [edited] Pin
toxcct1-Nov-05 6:36
toxcct1-Nov-05 6:36 
GeneralRe: Complete Vector elements deletion [edited] Pin
itkid1-Nov-05 7:44
itkid1-Nov-05 7:44 
GeneralRe: Complete Vector elements deletion [edited] Pin
Kevin McFarlane1-Nov-05 10:15
Kevin McFarlane1-Nov-05 10:15 
QuestionDNS program Pin
c++code1011-Nov-05 5:54
c++code1011-Nov-05 5:54 
QuestionGoogolplex Program Pin
ericelysia1-Nov-05 5:03
ericelysia1-Nov-05 5:03 
AnswerRe: Googolplex Program Pin
Maximilien1-Nov-05 5:32
Maximilien1-Nov-05 5:32 
AnswerRe: Googolplex Program Pin
David Crow1-Nov-05 5:38
David Crow1-Nov-05 5:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.