Frama-C-discuss mailing list archives

This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.


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

[Frama-c-discuss] "Re: How to ignore Incompatible declarations without emitting errors?"


  • Subject: [Frama-c-discuss] "Re: How to ignore Incompatible declarations without emitting errors?"
  • From: dmentre at linux-france.org (David MENTRE)
  • Date: Thu, 12 Sep 2013 13:59:22 +0200
  • In-reply-to: <523199BD.7010705@gmail.com>
  • References: <mailman.29.1378980073.12435.frama-c-discuss@lists.gforge.inria.fr> <523199BD.7010705@gmail.com>

Hello David,

2013/9/12 David <abiao.yang at gmail.com>:
> I was wondering whether i could pre-process c file by include frama-c
> library without -nostdinc flag, i.e. using frama-c share library along with
> including system headers by the following command :
> gcc -C -E -I/usr/local/share/frama-c/libc -I. test.c

I don't think so. For me this is complicated (a system header might
use another system header the defines a symbol identical to one in
Frama-C's header, even if at first sight both first level included
files are different) and risky (you might think that a symbol is
defined by a system header while in fact it is defined by a Frama-C
one, or vice versa).

It is probably better to use only Frama-C headers, maybe augmented by
copied/pasted and annotated version of system ones if Frama-C headers
are lacking some features.

Best regards,
david