[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: undefined reference to `main' and strange gnat behaviour



On Wed, 2014-09-24 at 12:09 +0200, Gour wrote:
> On Wed, 24 Sep 2014 10:24:27 +0100
> Brian Drummond
> <brian@shapes.demon.co.uk> wrote:
> 
> > Check file modification timestamps after each editor has finished :
> > you are looking for a reason why gnatmake thinks an object file is up
> > to date (newer than the source) when it is not...
> 
> Well, here we see something interesting...

> $ vim hello.adb 
> 
> $ ls -al
> -rw-r--r-- 1 gour gour   117 Ruj 24 12:04 hello.adb
> -rw-r--r-- 1 gour gour  1487 Ruj 24 12:04 hello.ali
> -rw-r--r-- 1 gour gour   657 Ruj 24 12:04 hello.o
> 
> 
> which shows that after editing file with vim, timestamps of the
> hello.{ali,o} changes as if vim automagically triggers compilation.

... and if Vim *is* magically triggering recompilation, it looks as if
it is using a broken, incorrectly installed toolchain...

- Brian



Reply to: