Skip to content

redefinition of size_t, time_t, FILE

ID0002171: This issue was created automatically from Mantis Issue 2171. Further discussion may take place here.


Id Project Category View Due Date Updated
ID0002171 Frama-C Kernel > libc public 2015-09-29 2016-01-26
Reporter kroeckx Assigned To maroneze Resolution fixed
Priority normal Severity minor Reproducibility always
Platform - OS - OS Version -
Product Version Frama-C Sodium Target Version - Fixed in Version Frama-C Magnesium

Description :

Hi,

if I include both <stdio.h> and <builtin.h> to get things like Frama_C_interval() it will give the following errors: FRAMAC_SHARE/machine.h:67:[kernel] user error: redefinition of 'size_t' in the same scope. Previous declaration was at FRAMAC_SHARE/libc/__fc_define_size_t.h:26 FRAMAC_SHARE/machine.h:70:[kernel] user error: redefinition of 'time_t' in the same scope. Previous declaration was at FRAMAC_SHARE/libc/__fc_define_time_t.h:25 FRAMAC_SHARE/machine.h:88:[kernel] user error: redefinition of 'FILE' in the same scope. Previous declaration was at FRAMAC_SHARE/libc/__fc_define_file.h:39

machine.h has them as typedefs while the other files have them as #defines.

Kurt

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information