you use interactively? That is, does `:set shell?` print "/bin/tcsh" (or
wherever it's located on your system)? It could be that it's using
/bin/sh instead, which I believe is the default if your SHELL
environment variable is unset.
Or perhaps `system('which gcc')` is executing the command in a different
environment than the one used by your interactive shell. For instance,
maybe the PATH variable is somehow being modified by the shell invoked
by `system`. Probably unlikely, but not hard to check.
At the very least, you could try using
:let &makeprg = 'make CC=/los-178/2.2.2/rsc/cdk/sunos-xcoff-ppc/bin/gcc'
to tell make explicitly which gcc to use. This assumes that the Makefile
for your project uses the CC variable to refer to the compiler, but
that's pretty much standard practice (s/CC/CXX/ if you're using C++
instead of C).
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment