-
Notifications
You must be signed in to change notification settings - Fork 841
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
Stack build: Windows 7 stdc++.dll missing #754
Comments
I've never been successful at getting C++ libraries working on Windows. This far predates stack for me, and even came up on the issue tracker previously regarding the formatting library: If anyone has input on how to solve this, that would be great, but I have no plans on it right now. |
Given that it's probably easiest to avoid the dependency on |
|
Indeed, thanks! |
I don't know if this is of any help but copying mingw/bin/libstdc++-6.dll to ghc/bin/stdc++.dll gives
|
I think that error can be fixed by linking libgcc_s_sjlj-1.dll which should come with mingw; you might see some other weirdness after that if you're using Template Haskell: I'm super keen to get this figured out once and for all — I've been battling with it myself trying to link bindings to the Bullet Physics library on Windows. For the stuff I'm doing (3D/VR engine development) C++ bindings are totally essential! |
Closing; if someone wants to send some documentation PRs to help with the situation, that will definitely be appreciated! |
Hello, GHC issue #10672 is now fixed, once GHC #10955 is finished and committed this should be solved. |
Thanks! On Sat, Oct 10, 2015, 6:55 PM Tamar Christina notifications@github.com
|
I have a workaround to allow usage of Template Haskell with C++ on Windows. First, create file
Execute: Note you don't need to rename libstdc++-6.dll. At least for me this trick alone fixes everything and allows me to link with C++ and use Template Haskell. It also doesn't add I was hoping this is fixed in GHC 7.10.3, as multiple related tickets have been closed, like GHC 3242. But as I can see from practice, it's not fixed in 7.10.3. Looks like the actual tickets now are GHC 10726, GHC 11223. It's actually very annoying, would be great to see some temporary workaround wired-in into stack, until it's not fixed in ghc. BTW I think I was able to add this ADDITION: this method works for me with GHC 7.10.3. |
Apparently, stdc++.dll is missing.
Stack build gives the following error message on Windows 7:
Here are the imports of the DPM.Model module:
The text was updated successfully, but these errors were encountered: