|
From: levan s. <sh...@ho...> - 2016-04-15 10:07:29
|
i have small header file:#ifndef _STD_HEADER_UTIL_H#include <cmath>#include <string>#include <vector>#include <assert.h>#include <algorithm>#include <limits>#include<set>#include <map>#include <limits>#include <utility>using namespace std;#include <fx.h>#include <fx3d.h>#endifand include it in every file i need in the first place. after that other files are included.This solves 'namespase mixing' problems > From: fox...@li... > Subject: Foxgui-users Digest, Vol 111, Issue 2 > To: fox...@li... > Date: Fri, 15 Apr 2016 06:37:53 +0000 > > Send Foxgui-users mailing list submissions to > fox...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/foxgui-users > or, via email, send a message with subject or body 'help' to > fox...@li... > > You can reach the person managing the list at > fox...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Foxgui-users digest..." > > > Today's Topics: > > 1. Visual Studio 2015 error C2589 and C2059 (John Selverian) > 2. Re: Visual Studio 2015 error C2589 and C2059 (Olivier B.) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 14 Apr 2016 18:39:59 -0400 > From: "John Selverian" <joh...@ja...> > Subject: [Foxgui-users] Visual Studio 2015 error C2589 and C2059 > To: <fox...@li...> > Message-ID: <003401d1969e$963c04d0$c2b40e70$@jahm.com> > Content-Type: text/plain; charset="us-ascii" > > In Visual Studio 2012 I use "Platform Toolset Visual Studio (V110)" > > > > I just upgraded to Visual Studio 2015 and using the default "Platform > Toolset Visual Studio (v140)" gives these errors below. > > > > switching to "Platform Toolset V110" on VS 2015 fixes the problems but I > wonder if this is a VS bug of Fox bug. I see this with fox 1.6.44 and 1.7.50 > > > > > > compile errors: > > > > > > 1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\cmath(32): > error C2589: '(': illegal token on right side of '::' > > 1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\cmath(32): > error C2059: syntax error: '::' > > ..... > > ..... > > 1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\cmath(310): > error C2589: '(': illegal token on right side of '::' > > 1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\cmath(310): > error C2059: syntax error: '::' > > > > > > > > In cmath.h these errors correspond to lines where the funciton names below > > > > > > for example, when I hover my mouse over fabsf I see this "#define fabsf(x) > ((float)fabs((double(x)))" > > > > > > > > _Check_return_ inline float abs(_In_ float _Xx) _NOEXCEPT > > { > > return (_CSTD fabsf(_Xx)); > > } > > > > _Check_return_ inline float acos(_In_ float _Xx) _NOEXCEPT > > { > > return (_CSTD acosf(_Xx)); > > } > > > > _Check_return_ inline float asin(_In_ float _Xx) _NOEXCEPT > > { > > return (_CSTD asinf(_Xx)); > > } > > > > _Check_return_ inline float atan(_In_ float _Xx) _NOEXCEPT > > { > > return (_CSTD atanf(_Xx)); > > } > > > > _Check_return_ inline float atan2(_In_ float _Yx, _In_ float _Xx) _NOEXCEPT > > { > > return (_CSTD atan2f(_Yx, _Xx)); > > } > > > > _Check_return_ inline float ceil(_In_ float _Xx) _NOEXCEPT > > { > > return (_CSTD ceilf(_Xx)); > > } > > > > _Check_return_ inline float cos(_In_ float _Xx) _NOEXCEPT > > { > > return (_CSTD cosf(_Xx)); > > } > > > > _Check_return_ inline float exp(_In_ float _Xx) _NOEXCEPT > > { > > return (_CSTD expf(_Xx)); > > } > > > > _Check_return_ inline float fabs(_In_ float _Xx) _NOEXCEPT > > { > > return (_CSTD fabsf(_Xx)); > > } > > > > _Check_return_ inline float floor(_In_ float _Xx) _NOEXCEPT > > { > > return (_CSTD floorf(_Xx)); > > } > > > > _Check_return_ inline float fmod(_In_ float _Xx, _In_ float _Yx) _NOEXCEPT > > { > > return (_CSTD fmodf(_Xx, _Yx)); > > } > > > > _Check_return_ inline float log(_In_ float _Xx) _NOEXCEPT > > { > > return (_CSTD logf(_Xx)); > > } > > > > _Check_return_ inline float log10(_In_ float _Xx) _NOEXCEPT > > { > > return (_CSTD log10f(_Xx)); > > } > > > > _Check_return_ inline float pow(_In_ float _Xx, > > _In_ float _Yx) _NOEXCEPT > > { > > return (_CSTD powf(_Xx, _Yx)); > > } > > > > _Check_return_ inline float pow(_In_ float _Xx, _In_ int _Yx) _NOEXCEPT > > { > > if (_Yx == 2) > > return (_Xx * _Xx); > > > > return (_CSTD powf(_Xx, static_cast<float>(_Yx))); > > } > > > > _Check_return_ inline float sin(_In_ float _Xx) _NOEXCEPT > > { > > return (_CSTD sinf(_Xx)); > > } > > > > _Check_return_ inline float sqrt(_In_ float _Xx) _NOEXCEPT > > { > > return (_CSTD sqrtf(_Xx)); > > } > > > > _Check_return_ inline float tan(_In_ float _Xx) _NOEXCEPT > > { > > return (_CSTD tanf(_Xx)); > > } > > > > > > > > Kind regards, > > > > js > > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: Fri, 15 Apr 2016 08:37:45 +0200 > From: "Olivier B." <per...@gm...> > Subject: Re: [Foxgui-users] Visual Studio 2015 error C2589 and C2059 > To: "fox...@li..." > <fox...@li...> > Message-ID: > <CA+...@ma...> > Content-Type: text/plain; charset="utf-8" > > Doesn't VS2013+ give you the cpp that was being compiled when the hpp error > was encountered a bit further in the output window? The more likely error > is in some of your code that uses those functions. And i don't see in your > mail anything showing FOX could have anything to do with it. > > 2016-04-15 0:39 GMT+02:00 John Selverian <joh...@ja...>: > > > In Visual Studio 2012 I use "Platform Toolset Visual Studio (V110)" > > > > > > > > I just upgraded to Visual Studio 2015 and using the default "Platform > > Toolset Visual Studio (v140)" gives these errors below. > > > > > > > > switching to "Platform Toolset V110" on VS 2015 fixes the problems but I > > wonder if this is a VS bug of Fox bug. I see this with fox 1.6.44 and 1.7.50 > > > > > > > > > > > > compile errors: > > > > > > > > > > > > 1>C:\Program Files (x86)\Microsoft Visual Studio > > 14.0\VC\include\cmath(32): error C2589: '(': illegal token on right side of > > '::' > > > > 1>C:\Program Files (x86)\Microsoft Visual Studio > > 14.0\VC\include\cmath(32): error C2059: syntax error: '::' > > > > ..... > > > > ..... > > > > 1>C:\Program Files (x86)\Microsoft Visual Studio > > 14.0\VC\include\cmath(310): error C2589: '(': illegal token on right side > > of '::' > > > > 1>C:\Program Files (x86)\Microsoft Visual Studio > > 14.0\VC\include\cmath(310): error C2059: syntax error: '::' > > > > > > > > > > > > > > > > In cmath.h these errors correspond to lines where the funciton names below > > > > > > > > > > > > for example, when I hover my mouse over fabsf I see this "#define fabsf(x) > > ((float)fabs((double(x)))" > > > > > > > > > > > > > > > > _Check_return_ inline float abs(_In_ float _Xx) _NOEXCEPT > > > > { > > > > return (_CSTD fabsf(_Xx)); > > > > } > > > > > > > > _Check_return_ inline float acos(_In_ float _Xx) _NOEXCEPT > > > > { > > > > return (_CSTD acosf(_Xx)); > > > > } > > > > > > > > _Check_return_ inline float asin(_In_ float _Xx) _NOEXCEPT > > > > { > > > > return (_CSTD asinf(_Xx)); > > > > } > > > > > > > > _Check_return_ inline float atan(_In_ float _Xx) _NOEXCEPT > > > > { > > > > return (_CSTD atanf(_Xx)); > > > > } > > > > > > > > _Check_return_ inline float atan2(_In_ float _Yx, _In_ float _Xx) _NOEXCEPT > > > > { > > > > return (_CSTD atan2f(_Yx, _Xx)); > > > > } > > > > > > > > _Check_return_ inline float ceil(_In_ float _Xx) _NOEXCEPT > > > > { > > > > return (_CSTD ceilf(_Xx)); > > > > } > > > > > > > > _Check_return_ inline float cos(_In_ float _Xx) _NOEXCEPT > > > > { > > > > return (_CSTD cosf(_Xx)); > > > > } > > > > > > > > _Check_return_ inline float exp(_In_ float _Xx) _NOEXCEPT > > > > { > > > > return (_CSTD expf(_Xx)); > > > > } > > > > > > > > _Check_return_ inline float fabs(_In_ float _Xx) _NOEXCEPT > > > > { > > > > return (_CSTD fabsf(_Xx)); > > > > } > > > > > > > > _Check_return_ inline float floor(_In_ float _Xx) _NOEXCEPT > > > > { > > > > return (_CSTD floorf(_Xx)); > > > > } > > > > > > > > _Check_return_ inline float fmod(_In_ float _Xx, _In_ float _Yx) _NOEXCEPT > > > > { > > > > return (_CSTD fmodf(_Xx, _Yx)); > > > > } > > > > > > > > _Check_return_ inline float log(_In_ float _Xx) _NOEXCEPT > > > > { > > > > return (_CSTD logf(_Xx)); > > > > } > > > > > > > > _Check_return_ inline float log10(_In_ float _Xx) _NOEXCEPT > > > > { > > > > return (_CSTD log10f(_Xx)); > > > > } > > > > > > > > _Check_return_ inline float pow(_In_ float _Xx, > > > > _In_ float _Yx) _NOEXCEPT > > > > { > > > > return (_CSTD powf(_Xx, _Yx)); > > > > } > > > > > > > > _Check_return_ inline float pow(_In_ float _Xx, _In_ int _Yx) _NOEXCEPT > > > > { > > > > if (_Yx == 2) > > > > return (_Xx * _Xx); > > > > > > > > return (_CSTD powf(_Xx, static_cast<float>(_Yx))); > > > > } > > > > > > > > _Check_return_ inline float sin(_In_ float _Xx) _NOEXCEPT > > > > { > > > > return (_CSTD sinf(_Xx)); > > > > } > > > > > > > > _Check_return_ inline float sqrt(_In_ float _Xx) _NOEXCEPT > > > > { > > > > return (_CSTD sqrtf(_Xx)); > > > > } > > > > > > > > _Check_return_ inline float tan(_In_ float _Xx) _NOEXCEPT > > > > { > > > > return (_CSTD tanf(_Xx)); > > > > } > > > > > > > > > > > > > > > > Kind regards, > > > > > > > > js > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Find and fix application performance issues faster with Applications > > Manager > > Applications Manager provides deep performance insights into multiple > > tiers of > > your business applications. It resolves application problems quickly and > > reduces your MTTR. Get your free trial! > > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > > _______________________________________________ > > Foxgui-users mailing list > > Fox...@li... > > https://lists.sourceforge.net/lists/listinfo/foxgui-users > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > > ------------------------------ > > _______________________________________________ > Foxgui-users mailing list > Fox...@li... > https://lists.sourceforge.net/lists/listinfo/foxgui-users > > > End of Foxgui-users Digest, Vol 111, Issue 2 > ******************************************** |