-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DLL Build #63
Comments
https://github.com/JettMonstersGoBoom/tigr I have an example "examples/hellodll" for building TIGR as a DLL. just changes to the tigr.h file. and some compile flags. |
Thanks. I tried to build it, but I keep getting __mingw_winmain undefined reference error. I'm trying to build it under Windows. |
that's odd. I'm using x86_64-w64-mingw32 version 13.2.0. |
When I do this: |
-DTIGR_BUILDSHARED is needed for the DLL, |
Alright, I think I almost got it. |
that error when building the DLL ? I'm not really sure what's going on there. did you clean any .o or .dll files first ? |
I can't figure out why it isn't building either, I'll try a few more things. |
I just installed w64devkit and git on a clean machine and still don't have any issues ? I don't see how mingw would be different for something this trivial. |
I figured it out. The error was coming from the WinMain function. To build a DLL, you don't need a Winmain function. add to line 2699 in tigr.c #ifndef TIGR_BUILDSHARED --begin of makefile
--build DLL or shared library Thanks to https://github.com/ghaberek for his help with this. |
I agree you shouldn't need it, but it also shouldn't cause an issue with building and linking a dll. At least you got it resolved. |
Yes, it does seem odd, but I got it to work and have a DLL now. Thanks for your help as well. |
added the change to my repo. just incase someone else runs into this. |
Sounds good. I've made a wrapper for the TIGR library for OpenEuphoria. https://github.com/gAndy50/EuTigr |
Is it possible to build TIGR as a DLL or shared library?
The text was updated successfully, but these errors were encountered: