Hi all,
I hope someone can help me because I'm running out of ideas.
I have an UDF collection written in C language. It works fine on the Linux
server (Firebird version is: firebird-superclassic-2.5.6.27020.0-1.el7.x86_64)I
just simply compiled it with gcc, copied the output .so file to Firebird'
28.03.2017 13:26, Nagy Szilveszter nagy_szilvesz...@yahoo.com
[firebird-support] wrote:
> Do you have ideas why it cannot find my UDFs?
First of all, check that your DLL exports 'sum' without mangling.
--
WBR, SD.
--
My sample DLL's source C code is just as simple as this:
#include
int sum(int a, int b){ return a+b;}
That's all. And it works fine in linux.
How should i modify it?
On Tuesday, March 28, 2017 3:22 PM, "Dimitry Sibiryakov s...@ibphoenix.com
[firebird-support]" wrote:
28.03.201
28.03.2017 15:14, Nagy Szilveszter nagy_szilvesz...@yahoo.com
[firebird-support] wrote:
> That's all. A nd it wo rks fine in linux.
>
> How should i modify it?
STFW how to export functions from C++ DLLs.
--
WBR, SD.
Excuse me, but i'm looking for helpful answers.
This is not C++ as you can see, but C. And it's very hard to find relevant
information about C because almost every search result would give C++ or C#
results when searching for C. Also I'd like to have the same code running on
both platforms.
I ha
29.03.2017 0:27, Nagy Szilveszter nagy_szilvesz...@yahoo.com [firebird-support]
wrote:
> I have wasted a lot of time but succes yet to come.
void foo()
#ifdef __WIN32__
__declspec(dllexport);
#else
__attribute__((visibility ("default")));
#endif // __WIN32__
--
WBR, SD.
--
This should explain:
https://www.youtube.com/watch?v=yepjPiVIzPc
--
pozdr,
Michał Kurczabiński
Finally i managed to solve the problem.the keyword was
extern "C"
Now the compiler stopped mangling the function names and Firebird can see them
correctly.
Good luck all!
On Wednesday, March 29, 2017 11:54 AM, "Michal Kurczabinski
michk...@gmail.com [firebird-support]" wrote:
Thi
30.03.2017 14:17, Nagy Szilveszter nagy_szilvesz...@yahoo.com
[firebird-support] wrote:
> the keyword was
>
> extern "C"
>
> Now the compiler stopped mangling the function names and Firebird can see
> them correctly.
Only C++ compilers mangle names but you insisted that you use plain C...
-