-
Notifications
You must be signed in to change notification settings - Fork 214
enable building dll's using makefile.msvc #489
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
Conversation
|
Did you read the comment in |
The reason I added these empty declarations is that when building a debug dll, the linker complains. causes this error to be thrown when creating the dll: Adding these empty implementations, fixes that. |
a2ba8f4 to
b206dde
Compare
|
travis ci is failing because I have added some symbols to
What do you think? |
|
Not adding implementations and depending on the compiler to optimize away impossible function calls, seems wrong to me. |
I was also skeptical whether relying on this functionality is good, but nowadays I write code in the same style in my professional life. It has more advantages than disadvantages.
cool, whatever this 'conan' is :)
That's possible, as macos is not something we're testing regularly against. How can I see a summary of what failed? |
It's easier to use and code, I understand.
conan is a package manager for c/c++, and conan-center-index is a library for useful comon libraries.
I've fixed the la error. |
TBH who really cares about MSVC? I don't ... support for it is a nice goodie, but to mess up code for this compiler - no way!
nice!
and sorry if our decision that MSVC support is only secondary makes additional work you :) I guess if you have to use MSVC and this poses problems to you, you will have to maintain those patches. IIRC @nijtmans builds Windows libraries with GCC, which then also have full 64bit support which MSVC is lacking! |
I understand your opinion, but as you see it's failing on clang too.
That's always a risk when packaging things 😄 .
What missing 64-bit support are you referring to? |
hmm... I remember having seen this on clang as well, but I can't reproduce on my machine.
The fact that MSVC has no 128bit data type for |
It also doesn't occur on my machine, running clang 9.
I don't mind some friendly competition 😄 |
|
FWIW, MoarVM carries MoarVM@628cf84 around on top of libtommath because we use some debug builds in our CI testing. |
so it's clear that it's a compiler bug that has since been fixed in clang and the only compiler that is still buggy is MSVC. |
Your patch is a lot easier. Can I borrow it for the cci patch? With attribution of course.
Some things never change. |
Sure. Don't worry about attribution, and now that you mention it, I think I cribbed it from an earlier version of libtommath itself. |
|
Can this be closed in favor of #490 ? |
|
Of course, your pr is building on top of this one. |
makefile.msvcSee Build shared libraries using Visual Studio #488 (comment) for the link error.
@sjaeckel @nijtmans