Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F frama-c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 168
    • Issues 168
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pub
  • frama-c
  • Issues
  • #536

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
Assignee
Assign to
Time tracking