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
building the library for windows #172
Comments
There's a |
yes and i followed the instructions but when i tried to debug a simple
program to test it gdb kept exiting and when i ran it i got this error :
![Screenshot 2023-09-22 003113](https://github.com/libconfuse/libconfuse/assets/121625499/3374de19-db11-41c7-a752-ea72260125c1)
and when i tried to build libconfuse-2.dll i got a linker error
|
I finally solved the proplem
|
OK, but none of that should be necessary:
Exactly how did you autogen.sh + configure + make libconfuse to get to this state? And what version of libconfuse are you using, or are you building directly from the latest master branch on GitHub? |
I downloaded the zip file from the releases page yesterday so i think it is the latest release and i configured and built it using
when i opened fmemopen.c to see what is the proplem config.h was included and it had HAVE_WINDOWS_H set to 1 but for some reason all the definitions of fmemopen where dark which means that it is not activated due to preprocessors so i moved HAVE_WINDOWS_H from config.h to fmemopen and when i ran make the only error i got was a linker error saying that it couldn't find the definition of realloc_array so i included realloc_array.c in confuse.c and I finally was able to build the dll |
Thanks for detailing your answer. We'll have a look at it later to see if we can figure out what's wrong. |
I ran configure with the --prefix=/mingw flag and then when i ran make i got this linker error :
The text was updated successfully, but these errors were encountered: