Discussion:
Compiling
Incongruous
2014-07-09 00:48:56 UTC
Permalink
OS: Windows7 64bit
IDE/Compiler: Visual Studio Express 2013
wxWidgets-3.0.1
Error:
1>------ Build started: Project: ConsoleApplication1, Configuration: Debug x64 ------
1> stdafx.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtgmath.h(126): error C2039: 'fmaf' : is not a member of '`global namespace''

For some reason I am getting this error, does anyone know what is causing it?

Thanks
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Marian 'VooDooMan' Meravy
2014-07-09 00:56:24 UTC
Permalink
Greetings,
Post by Incongruous
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtgmath.h(126): error C2039: 'fmaf' : is not a member of '`global namespace''
My first guess:

I had this error for like "sin", "fmod", ... all defined in MSVC's
"math.h", when I had my own "math.h". I renamed file to "my_math.h" and
problem disappeared.

Check whether you have your own "amp_math.h" in yhour project (where
"fmaf" is defined" in MSVC's system include dir), and try to rename it
to something else.

MSVC doesn't like more files with the same name, resulting in conflict,
even between system header and your own one.

best,
vdm
.
Marian 'VooDooMan' Meravy
2014-07-09 01:00:53 UTC
Permalink
Greetings,
Post by Marian 'VooDooMan' Meravy
Greetings,
Post by Incongruous
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtgmath.h(126): error C2039: 'fmaf' : is not a member of '`global namespace''
I had this error for like "sin", "fmod", ... all defined in MSVC's
"math.h", when I had my own "math.h". I renamed file to "my_math.h" and
problem disappeared.
Check whether you have your own "amp_math.h" in yhour project (where
"fmaf" is defined" in MSVC's system include dir), and try to rename it
to something else.
MSVC doesn't like more files with the same name, resulting in conflict,
even between system header and your own one.
or maybe "xtgmath.h" or *any* header in your project with the same name
as MSVC's internal/"public" include file.

best,
vdm
.
Marian 'VooDooMan' Meravy
2014-07-09 01:20:41 UTC
Permalink
Greetings,
Post by Incongruous
OS: Windows7 64bit
IDE/Compiler: Visual Studio Express 2013
wxWidgets-3.0.1
1>------ Build started: Project: ConsoleApplication1, Configuration: Debug x64 ------
1> stdafx.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtgmath.h(126): error C2039: 'fmaf' : is not a member of '`global namespace''
For some reason I am getting this error, does anyone know what is causing it?
or maybe... according to
http://msdn.microsoft.com/en-us/library/hh308290.aspx

you need access it by namespace "Concurrency::precise_math", try:

Concurrency::precise_math::fmaf(...);

or:

using namespace Concurrency::precise_math;
fmaf(...);

or:

using Concurrency::precise_math::fmaf;
fmaf(...);

best,
vdm
.

Loading...