Yes, you can statically link the TurboActivate library, but on Windows you must use the MSVC compilers, not GCC. Sorry. (We do support GCC on Linux / Mac / etc.).
I am developing Windows application in C compiling with GCC. I wonder if it's possible to somehow statically link TurboActivate library so I don't need to redistribute more files with my program.Did anyone had any luck with this? I would be happy to just use some program to embed a .DLL in my executable (not true static linking) if I could find any. Help ?
Yes, you can statically link the TurboActivate library, but on Windows you must use the MSVC compilers, not GCC. Sorry. (We do support GCC on Linux / Mac / etc.).
That's why I am asking if anyone had luck with doing it with GCC.MSVC is terrible C compiler. It supports only archaic version of the language (C90 so 25 years old one), it produces very slow code for computationally extensive programs (often 30%-40% slower). It doesn't support openMP beyond archaic 2.0 version etc. etc.
Switching to MSVC is just not an option in some domains (code that has to run fast and/or uses C99 features). I am giving my reasons why I can't use MSVC and asking about workarounds here. I realize you don't support it directly but maybe there is some way to make one executable.
You have a couple options on Windows (with non-MSVC compilers):
Well, ok thanks for your help.I would appreciate leaving this topic open. Maybe someone in the future (or me) comes up with the solution and post it here..The .dll works for me. My motivation for embedding it is to make distribution simpler for my users (they don't need installers and/or making sure the .dll stays in the same directory as the app)While I understand hostility towards GCC on Windows (it used to be terrible and having a grudge against technologies is natural thing for programmers) but I kindly suggest to LimeLM author to try MinGW with some recent-stable (4.8) compiler. Things are good now and people are giving up performance/compiler messages/tools if they stay with MSVC. Maybe it's not big enough market (CPU bound applications on Windows) so treat it just as one voice in the discussion.