problem with make in cross platform project Linux/Windows
Posted: Wed Nov 19, 2014 1:52 am
My project is very simple: it consist in only one cpp file which needs one library (which I try to link statically, but end up with the dynamic one, but that's a separate matter)
I need to build it on windows and on linux, so I created one project configuration for each platform and edited the path to search libraries in each configuration.
I started with linux, got it to work and then moved to windows, editing the windows configuration, got it to work, job done
Well, now linux build is broken
Of course I switched back to the linux configuration, but somehow it seems that the windows configuration impact/confuse make on linux.
I get the following error message:
/bin/sh -c '/usr/bin/make -e -f Makefile'
make: Warning: File `Makefile' has modification time 0.025 s in the future
----------Building project:[ ktcl - Debug ]----------
make[1]: Entering directory `/media/sf_dev/tcl/ktcl'
Debug/main.cpp.o.d:1: *** multiple target patterns. Stop.
make[1]: Leaving directory `/media/sf_dev/tcl/ktcl'
make: *** [All] Error 2
1 errors, 0 warnings
What can I do to solve that ?
or, alternatively, is there any recommended way to do such cross platform project ?
I need to build it on windows and on linux, so I created one project configuration for each platform and edited the path to search libraries in each configuration.
I started with linux, got it to work and then moved to windows, editing the windows configuration, got it to work, job done
Well, now linux build is broken
Of course I switched back to the linux configuration, but somehow it seems that the windows configuration impact/confuse make on linux.
I get the following error message:
/bin/sh -c '/usr/bin/make -e -f Makefile'
make: Warning: File `Makefile' has modification time 0.025 s in the future
----------Building project:[ ktcl - Debug ]----------
make[1]: Entering directory `/media/sf_dev/tcl/ktcl'
Debug/main.cpp.o.d:1: *** multiple target patterns. Stop.
make[1]: Leaving directory `/media/sf_dev/tcl/ktcl'
make: *** [All] Error 2
1 errors, 0 warnings
What can I do to solve that ?
or, alternatively, is there any recommended way to do such cross platform project ?