Skip to content

Error: 'tid_type gettid()' was first declared as ‘extern’ and then declared as 'static’ #3802

@ghost

Description

 ../../../jni/osbridge.cc:78:17: 错误:‘tid_type gettid()’先被声明为‘extern’后又被声明为‘static’ [-fpermissive]
     78 | static tid_type gettid ()
        |                 ^~~~~~
  In file included from /usr/include/unistd.h:1170,
                   from ../../../jni/util.hh:26,
                   from ../../../jni/globals.hh:5,
                   from ../../../jni/osbridge.cc:22:
  /usr/include/bits/unistd_ext.h:34:16: 附注:previous declaration of ‘__pid_t gettid()’
     34 | extern __pid_t gettid (void) __THROW;
        |                ^~~~~~

OS: Linux
Version: Arch rolling
GCC Version: 9.2.0
Mono Version: 6.0.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions