From: Dave C. <dav...@gm...> - 2010-03-22 15:52:49
|
Thanks Ozkan, that did the trick... the linear algebra libs now compile and work as expected... thanks, -dave On Sun, Mar 21, 2010 at 2:20 PM, Ozkan Sezer <se...@gm...> wrote: > On Sun, Mar 21, 2010 at 10:42 PM, Dave Camarillo > <dav...@gm...> wrote: > > 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 > > Just delete this particular one from your installation ... > > > > > > > $ 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 > > ... and this will be included by your source, instead. > > For some reason yet unknown to me, the gcc-provided headers > have priority over the system provided headers and float.h is > especially problematic: Not installing or deleting it is the solution, > at least for now. > > -- > Ozkan > |