#segmentation error/compile error? Not sure what to do
36 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
I get a segmentation error here, but i dont think its the root cause
Neither gcc nor g++ work - g++ gives the same error as above
And when I try to run it again, i get this
Something may be wrong with the code. I don't know any cpp; i copy pasted it from https://www.learncpp.com/cpp-tutorial/compiling-your-first-program/ to ensure i have everything setup correctly
Thanks very much for the help!
@rare meteor Has your question been resolved? If so, type !solved :)
Does it show you which version of the libstdc++ DLL it's loading?
Sorry, I don't know what thats referring to...
Check the debug menu/window
It gives me this
Yeah, so what's happening is anaconda's libstdc++ dll is getting loaded first, rather than the one from your mingw install. you need to change your path such that your install's mingw binaries are before anaconda's
what's likely the case is your compiled code is mismatching with the DLL (it's likely an older version of mingw), thus it just crashes because the OS can't really handle it
i mean, this'll likely break anaconda
i have zero clue how to properly resolve this for anaconda
Ah
Really appreciate the help though in any case
Would uninstalling anaconda fix it lol?
I can always just reinstall all the libraries as i need them
Good luck!
Thanks - any thoughts on where to head next for advice?
For the anaconda stuff?
Yeah or to resolve this issue
Either an anaconda or mingw specific discussion forum. You could try the github issues or mailing lists
Or if they have specific discords
Got it. Thanks again, have a good week
You as well.
Also, one "solution" may be to sandbox your installs in VMs/Containers
@rare meteor Has your question been resolved? If so, type !solved :)
!solved