How did you set up Eclipse? If the problem is the toolchain, then you should be able to resolve the issue by following section three of Native Applications Guide for Boards and Kits.
Anyhow, I'd personally suggest you to compile the project on the Edison itself mainly because eclipse projects are stored temporarly on the Edison and will be erased on the next boot.
I followed documentation, but that did not help compile, however it did clear up some other strange things that were happening...
but i found the solution to the original problem in this thread: https://communities.intel.com/thread/61564?start=0&tstart=0
and used File -> New -> Other... -> Intel(R) IoT Developper Kit -> Intel (R) IoT C/C++ project.
to create a new project . after that I was just getting "nullptr not defined"
I don't know why it is not recognizing nullptr. After I defined it, it works (compiles, builds and runs) - this is probably not the best practice to define again, but works for now.
On another note, I noticed that the Edison IOT dev kit installation (w_iot_2015.0.031.exe, that includes the drivers, IOT dev kit, Eclipse) does not install Eclipse properly unless you have winzip on your system. The error I get is something along the lines of corrupted archive (only for eclipse)...but after installing winzip and running installation again, it worked just fine. the downside is that if you do a standalone installation of Eclipse, you have to start it using the batch file, instead of Eclipse icon (at least that's how it was for me).
Anyone know if this is expected behavior? If so, maybe it should be added to instructions.