From 965c77525c9596ea2ea1424e83874616bd4fdbfc Mon Sep 17 00:00:00 2001 From: Cary R Date: Sat, 24 Dec 2011 11:20:54 -0800 Subject: [PATCH] A C++ function passed to C should be declared extern "C" --- tgt-pcb/scope.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgt-pcb/scope.cc b/tgt-pcb/scope.cc index 0ea50a995..d9ae6a0cc 100644 --- a/tgt-pcb/scope.cc +++ b/tgt-pcb/scope.cc @@ -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;