Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need helps calling static LIB function
#1
How do I calling a function from static lib that has cpp export function? Would this working in FB?

Code:
'$inclib: "cppbase.lib"
declare function lib_func1 alias "lib::func1" (arg...) as long


Thanks in advance
Reply
#2
No, that won't work, C++ will mangle the function names and also the cons/des/tructors have to be called etc.

Only way is creating a wrapper in C and then declaring the wrapper's functions -- see wx-c for an example, but it's not simple to be done.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)