Interesting. Well look into this for the next bug fix version. Its not a priority right now (other releases coming first). In the meantime, on Windows use the dynamic libraries.
I'm unable to link to both the TurboActivate and TurboFloat static libraries on Windows.
I'm using the latest versions of both libraries, v4.1.9.0.
I'm compiling on Windows 7 64-bit and am using the 64-bit native command line tools included with Visual Studio 2017. I've double checked to make sure I'm using the x64 versions of the static libraries that are compatible with VS2017 and VS2019.
When compiling, I get the following linker errors: https://pastebin.com/PubGkuQG
This looks like it might be the same issue that two other users mentioned in an unrelated thread:
https://wyday.com/forum/t/4306/turbofloat-turboactivate-static-linking-access-violation/#post-21348https://wyday.com/forum/t/4306/turbofloat-turboactivate-static-linking-access-violation/#post-21366
Interesting. Well look into this for the next bug fix version. Its not a priority right now (other releases coming first). In the meantime, on Windows use the dynamic libraries.
Hello, I'm having the same issue with 4.4.3.0 and Visual Studio 2019.
Any updates on this, anything I can do on my end?
Thanks
Nope, currently the only way to use both TA/TF in the same app is to use dynamic libraries.
We‘ll eventually make a “combined“ static library on Windows, but it’s not a priority.
Thanks for the quick reply, but sorry to hear it isn't working. Anything I can do on this end to make it a priority, or work around it until it gets fixed?
The workaround is to use the dynamic libraries. The static libraries are often more trouble than they're worth. The only real benefit they offer is a slightly smaller end executable (a few kilobytes saved).
I can see what you mean.
In this case, my software is already a dynamic-library (plug-in). In order for the plug-in to find the TurboFloat.dll, I will need to ask my users to edit their PATH environment variable ahead of launching the application hosting the plug-in. They are artists, so it's a tall order.
So in terms of distribution, documentation and presentation, the statically built TurboActivate has worked wonders so far and it would be wonderful if I could manage to squeeze TurboFloat in there as well. If it's a question of cost, I'd be happy to discuss it further.
You could just find the DLL (relative to your dll) and load it using LoadLibrary: https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-loadlibraryw
Thanks, that seems to do the trick.
Now the only remainder is presentation and distribution, from 1 file to 2. I'll be keeping an eye on this issue and cross my fingers that one day it can be resolved.

I'm back with another problem and a reminder of why all of my libraries are statically compiled; my software is a plug-in amongst many plug-ins, some of which are also using TurboFloat.dll (which is unsurprisingly popular!).
It's unclear what version they use, but it is unlikely the same as I do and with that I expect one or the other to conflict.
Is there a possible workaround for this?
You can name the TurboFloat.dll anything (for example “MyApp.TF.dll”) and then load it using the LoadLibrary function.
Thanks for getting back.
I'm a bit confused, probably because I don't understand dynamic libraries that well. In order to build, I need to link with `TurboFloat.lib`? From what I gather, that's the library that currently loads the dynamic library, and from what I gather it does so by the name `TurboFloat.dll`. I attempted to rename both to `myfloat.lib` and `myfloat.dll` but it still searches for `TurboFloat.dll`.
Am I understanding you correctly in that what needs to happen is..
Yes, or you can generate a new .lib file for your renamed dll (google for the specifics, it's one of the MSVC tools, you'll likely find an MSDN article spelling out how exactly to do it). But either way works.
Thanks, that works for the time being. My distribution and presentation has temporarily changed in anticipation of a combined TurboFloat and TurboActivate static build, I'll keep an on this thread for updates.