Skip to content

ISO C99 and later do not support implicit int #54

@mathbird

Description

@mathbird

Hi,

I am trying to build mpiP using "icx" on intel CPUs, but met the following issue. how to fix it?

pc_lookup.c:115:41: error: parameter 'data' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
find_address_in_section (abfd, section, data)
                                        ^
pc_lookup.c:118:6: error: expected function body after function declarator
     PTR data;
     ^
pc_lookup.c:119:1: error: expected identifier or '('
{
^
pc_lookup.c:438:58: error: use of undeclared identifier 'PTR'
  bfd_map_over_sections (abfd, find_address_in_section, (PTR) NULL);
                                                         ^
pc_lookup.c:438:32: error: use of undeclared identifier 'find_address_in_section'
  bfd_map_over_sections (abfd, find_address_in_section, (PTR) NULL);
                               ^
pc_lookup.c:480:35: error: use of undeclared identifier 'PTR'
                                 (PTR) NULL);
                                  ^
pc_lookup.c:479:44: error: use of undeclared identifier 'find_address_in_section'
          bfd_map_over_sections (fso->bfd, find_address_in_section,
                                           ^
7 errors generated.
make: *** [Rules.mak:6: pc_lookup.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions