﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2976	No recompilation happens for changes in includes	Adrian Pop	Martin Sjölund	"For example in File.mo, function write:
{{{#!mo
function write
  input File file;
  input String data;
external ""C"" om_file_write(file,data) annotation(Include=""
#ifndef __OMC_FILE_WRITE
#define __OMC_FILE_WRITE
#include <stdio.h>
#include <errno.h>
#include \""ModelicaUtilities.h\""
static inline void om_file_write(FILE **file,const char *data)
{
  if (!*file) {
    ModelicaError(\""Failed to write to file (not open)\"");
  }
  if (1 != fputs(data,*file)) {
    ModelicaFormatError(\""Failed to write to file: %s %d\\n\"", strerror(errno), i);
  }
}
#endif
"");
end write;
}}}

If you change anything inside the Include annotation the File.mo is not recompiled and the change is missed. 
I guess the interface of File.mo should include the external function annotation.

"	defect	closed	critical	1.9.2	Build Environment	trunk	fixed		
