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 » U++ Library support » U++ Core » VC2010
VC2010 [message #24871] Tue, 02 February 2010 09:56 Go to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

If anyone is using VC2010 and have problems with compiling core lib please change this line in Core.h:
#ifndef STLPORT
inline UPP::int64  abs(UPP::int64 x)          { return x < 0 ? -x : x; }
#endif

to
#if !defined STLPORT && !defined _INC_STDLIB
inline UPP::int64  abs(UPP::int64 x)          { return x < 0 ? -x : x; }
#endif
Re: VC2010 [message #24872 is a reply to message #24871] Tue, 02 February 2010 10:59 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

also one more patch is needed for sockets:
In socket.h there was:
#if defined(PLATFORM_WIN32)
	static int      GetErrorCode()                           { return WSAGetLastError(); }
#define SOCKERR(x) COMBINE(WSA, x)

and most likely should be:
#if defined(PLATFORM_WIN32)
	static int      GetErrorCode()                           { return WSAGetLastError(); }
#if(_WIN32_WINNT >= 0x0601)
#define SOCKERR(x) WSA##x
#else
#define SOCKERR(x) COMBINE(WSA, x)
#endif

[Updated on: Tue, 02 February 2010 10:59]

Report message to a moderator

Re: VC2010 [message #24873 is a reply to message #24871] Tue, 02 February 2010 16:11 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
Hello Unodgs

Thank you for the patches.

A question: In your experience it is worthwhile to use VC2010 now ?

If yes, is it easy to setup U++ ?


Best regards
Iñaki
Re: VC2010 [message #24875 is a reply to message #24873] Tue, 02 February 2010 17:26 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

koldo wrote on Tue, 02 February 2010 10:11

Hello Unodgs

Thank you for the patches.

A question: In your experience it is worthwhile to use VC2010 now ?

If yes, is it easy to setup U++ ?

It is as easy to setup as any other msc complier. However upp's msc builder needs to be updated a bit as new linker doesn't support all old commands.
I've just been interested in new VS rather than VC but with new compiler you can try some of new C++0x features Smile
Re: VC2010 [message #24876 is a reply to message #24875] Tue, 02 February 2010 17:53 Go to previous message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
unodgs wrote on Tue, 02 February 2010 17:26

koldo wrote on Tue, 02 February 2010 10:11

Hello Unodgs

Thank you for the patches.

A question: In your experience it is worthwhile to use VC2010 now ?

If yes, is it easy to setup U++ ?

It is as easy to setup as any other msc complier. However upp's msc builder needs to be updated a bit as new linker doesn't support all old commands.
I've just been interested in new VS rather than VC but with new compiler you can try some of new C++0x features Smile

Thank you!


Best regards
Iñaki
Previous Topic: Getting timezone or UTC offset?
Next Topic: T* Detach() for ArrayMap
Goto Forum:
  


Current Time: Sat Apr 27 19:39:11 CEST 2024

Total time taken to generate the page: 0.04410 seconds