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: abiao.yang at gmail.com (David)
  • Date: Thu, 12 Sep 2013 18:38:53 +0800
  • In-reply-to: <mailman.29.1378980073.12435.frama-c-discuss@lists.gforge.inria.fr>
  • References: <mailman.29.1378980073.12435.frama-c-discuss@lists.gforge.inria.fr>

>>   While I use gcc -C -E -I/$FRAMA_C_PATH/share/frama-c/libc -nostdinc test.c
>>
>> It failed to pre-process the file.
> The "$FRAMA_C_PATH" notation was supposed to mean the location of YOUR
> Frama-C setup. ;-)
>
> In my case this is
> "/usr/local/stow/frama-c-Fluorine-20130601/share/frama-c/libc" so I
> need to use command:
>    gcc -C -E -I/usr/local/stow/frama-c-Fluorine-20130601/share/frama-c/libc
> -nostdinc test.c
>
> You need to adapt this to YOUR setting.
>
> Notice that command "frama-c -print-share-path" can help you find the
> relevant path.
>
> Best regards,
> david
Dear david,

Thank you very much.
Yes, I was using the absolute path. ;-)
Thanks for reminding me of this issue.
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

Looking forward to your reply.

Best regards,
David