gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > cmath

#130544 - naleksiev - Tue Jun 05, 2007 3:04 am

Everything with my project was going good until my build process needed some modifications. So I moved some source files in some folders and I modified my Makefile. Actually it was a big change in the makefile. But in the compilation command I don't see anything special. The thing is that I include cmath in my project which include math.h. There are two math.h files one in the arm-eabi folder and one in the libnds. And cmath always includes the one from libnds. I tried adding the arm-eabi to the include folders also tried different include order but aways cmath includes the wrong file.

Any ideas why this is happening and how can I prevent it?