There was a BUILDING_DATABASE to define when compiling database DLLs, but I can remove this define. Before I update the original post, replace ExportDLL.h with that:
Also be careful to compile as a 32 bits DLL, not 64 bits
And that you need to add the option
to the linker (apply only to mingw).
On codeblocks it's there:
[Only registered and activated users can see links. Click Here To Register...]
In "Other linker options" (don't put what is on the image, I take this image from internet as I don't have codeblocks)
[edit]
I updated the version to 2.3.2 with the dialog box to convert between hash and filenames (menu: options -> Show/hide Hash converter)
In attachment: a sample project for codeblock and mingw that works (-Wl,--kill-at -static-libgcc -static-libstdc++ is already added in this project)
Code:
#ifndef EXPORTDLL_H_INCLUDED
#define EXPORTDLL_H_INCLUDED
#ifdef __unix__
# if defined(BUILDING_BASE)
# define EBASEDLL __attribute__((visibility("default")))
# else
# define EBASEDLL
# endif
# define EDATABASEDLL __attribute__((visibility("default")))
#else
# if defined(BUILDING_BASE)
# define EBASEDLL __declspec(dllexport)
# else
# define EBASEDLL __declspec(dllimport)
# endif
# define EDATABASEDLL __declspec(dllexport)
#endif
#ifdef __unix__
# define DLLCALLCONV
#else
# define DLLCALLCONV __stdcall
#endif
#endif // EXPORTDLL_H_INCLUDED
And that you need to add the option
Code:
-Wl,--kill-at -static-libgcc -static-libstdc++
On codeblocks it's there:
[Only registered and activated users can see links. Click Here To Register...]
In "Other linker options" (don't put what is on the image, I take this image from internet as I don't have codeblocks)
[edit]
I updated the version to 2.3.2 with the dialog box to convert between hash and filenames (menu: options -> Show/hide Hash converter)
In attachment: a sample project for codeblock and mingw that works (-Wl,--kill-at -static-libgcc -static-libstdc++ is already added in this project)