Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » MSC 9 Compilation Warnings -- Fix
MSC 9 Compilation Warnings -- Fix [message #13962] Sun, 03 February 2008 21:04 Go to next message
indiocolifa is currently offline  indiocolifa
Messages: 49
Registered: January 2008
Location: Argentina
Member
I'm using U++ 2008 Beta 1 and I've already fixed some compilation warnings with MS C/C++ 9.0.

Here are the patches (all with _MSC_VER > 1400) since I'm using Visual C++ 2008, I don't know what happens in previous versions of the compiler.

- /NOOPT:WIN98 is obsolete for the linker in MSC 9.0, I think it should be removed from the build settings for this compiler.

- In Core/Ol_set.CPP , the file starts with:

#pragma BLITZ_PROHIBIT

this is reported of course as unknown pragma.

should be #define ???

- In CtrlLib/ChWin32.cpp, MSC says tmschema.h is obsolete, I've replaced:

#include <uxtheme.h>
#include <tmschema.h>


by

#include <uxtheme.h>
#ifdef _MSC_VER
#if _MSC_VER > 1400	// Visual C > 2005
#include <vssym32.h>
#else
#include <tmschema.h>
#endif
#endif



I'll report more if you want.
Re: MSC 9 Compilation Warnings -- Fix [message #13966 is a reply to message #13962] Mon, 04 February 2008 00:27 Go to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
indiocolifa wrote on Sun, 03 February 2008 15:04

I'm using U++ 2008 Beta 1 and I've already fixed some compilation warnings with MS C/C++ 9.0.

Here are the patches (all with _MSC_VER > 1400) since I'm using Visual C++ 2008, I don't know what happens in previous versions of the compiler.

- /NOOPT:WIN98 is obsolete for the linker in MSC 9.0, I think it should be removed from the build settings for this compiler.

- In Core/Ol_set.CPP , the file starts with:

#pragma BLITZ_PROHIBIT

this is reported of course as unknown pragma.

should be #define ???



Nope, it really should be #pragma.

It is understood by theide build process.

Quote:


- In CtrlLib/ChWin32.cpp, MSC says tmschema.h is obsolete, I've replaced:

#include <uxtheme.h>
#include <tmschema.h>


by

#include <uxtheme.h>
#ifdef _MSC_VER
#if _MSC_VER > 1400	// Visual C > 2005
#include <vssym32.h>
#else
#include <tmschema.h>
#endif
#endif



I'll report more if you want.



Well, this one is well known, but was ignored because of backwards compatibility. Anyway, conditional for msc_ver is a good idea!

Mirek

[Updated on: Mon, 04 February 2008 00:29]

Report message to a moderator

Previous Topic: Code reformatting
Next Topic: Code reformatter added to TheIDE
Goto Forum:
  


Current Time: Sun Jun 02 04:49:47 CEST 2024

Total time taken to generate the page: 0.03361 seconds