[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: M-x compile problem under tramp
From: |
sunway |
Subject: |
Re: M-x compile problem under tramp |
Date: |
Tue, 13 May 2008 20:09:02 -0700 (PDT) |
User-agent: |
G2/1.0 |
On May 14, 5:24 am, Michael Albinus <michael.albi...@gmx.de> wrote:
> sunway <sunwayfore...@gmail.com> writes:
> > how ever, when using M-x compile under tramp, the command will always
> > return "..finished.." instead of "exited abnormally" when there is
> > compilation error. so the Compilation buffer will always be closed.
> > how to fix the problem?
>
> You might try something like this:
>
> (setq compile-command "make -k || echo Compilation exited abnormally with
> code $?")
>
> Best regards, Michael.
Compilation started at Wed May 14 11:07:42
make -k || echo Compilation exited abnormally with code $?
g++ -g -I./occi/occi_header -I./matlab/include -DDEBUG -c -o data.o
data.cpp
data.cpp:13: error: `ata_sniffer' has not been declared
data.cpp:13: error: expected `)' before '*' token
make: *** [data.o] Error 1
make: Target `all' not remade because of errors.
Compilation exited abnormally with code 2
///618cabfa20e529686c9b6e0b5a405636
exit
Connection to matlab closed.
exit
Compilation finished at Wed May 14 11:07:45