A C++ function passed to C should be declared extern "C"
This commit is contained in:
parent
4b96b63166
commit
965c77525c
|
|
@ -86,7 +86,7 @@ int scan_scope(ivl_scope_t scope)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int child_scan_fun(ivl_scope_t scope, void*)
|
||||
extern "C" int child_scan_fun(ivl_scope_t scope, void*)
|
||||
{
|
||||
int rc = scan_scope(scope);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue