In this Makefile (between the "---" lines (and attached)), the "foo" example doesn't work although the "bar" example works (if the files foo.cc and bar.cc exists in the right places).
------------------------------------------- /cygdrive/c/tmp/foo: /cygdrive/c/tmp/foo.cc g++ -Wall -W -o /cygdrive/c/tmp/foo /cygdrive/c/tmp/foo.cc C:\tmp\bar: C:\tmp\bar.cc g++ -Wall -W -o C:\tmp\bar C:\tmp\bar.cc ------------------------------------------- Version of make: GNU Make 3.81 I can't seem to find any information about this behaviour. It causes some trouble when trying to set absolute paths (in .bash_profile) that are later used in the Makefile. Setting the environment variable OBJROOT to "${HOME}/obj" and then referring to it in the Makefile will use a path like the "foo" one above; using "${HOME}/obj" directly in the Makefile will work because "${HOME}" expands differently in different circumstances. My "HOME" is set to "C:\Users\my_name\cyghome". Best regards Henrik Stentjärn -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple