Hello, I'm having a little trouble with the include paths used by mingw-w64
and was hoping for some insight... I have this chunk of code compiling
correctly under the normal mingw system, but have some problems with include
search paths with the w64 version... As far as I can tell, it's just pulling
in the wrong version of float.h? but since it's system include paths, I'm
not entirely sure how to get it to use the right paths.... After inspecting
the header it looks like this is an MS specific feature, thus the reason
it's not in the normal GCC header. I'm actually trying to compile a larger
linear-algebra library, but it wants the MS specifics when it's being
compiled on a MS box. Trivial source code, error messages and debug output
are below...
Thoughts?
Thanks,
-d
#include <float.h>
int main(int argc, char* argv) {
long i = _EM_DENORMAL;
return(0);
}
$ gcc -c test.c
test.c: In function 'main':
test.c:5:11: error: '_EM_DENORMAL' undeclared (first use in this function)
test.c:5:11: error: (Each undeclared identifier is reported only once
test.c:5:11: error: for each function it appears in.)
$ gcc -M -c test.c
test.o: test.c \
c:\msys\system64\bin-4.5.0\../lib/gcc/x86_64-w64-mingw32/4.5.0/include/float.h
$ cat /c/msys/system64/lib/gcc/x86_64-w64-mingw32/4.5.0/include/float.h |
grep EM_DENORMAL
<nothing is output>
There is a different header that has what I'm looking for:
$ cat /c/msys/system64/x86_64-w64-mingw32/include/float.h | grep EM_DENORMAL
#define _EM_DENORMAL 0x00080000
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public