#segmentation error/compile error? Not sure what to do

36 messages · Page 1 of 1 (latest)

rare meteor
#

Hi, I'm new to cpp - I'm running on vscode and am having trouble running anything

rain orioleBOT
#

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.

rare meteor
#

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

#

Thanks very much for the help!

rain orioleBOT
#

@rare meteor Has your question been resolved? If so, type !solved :)

misty ginkgo
#

Does it show you which version of the libstdc++ DLL it's loading?

rare meteor
misty ginkgo
#

Check the debug menu/window

rare meteor
#

It gives me this

misty ginkgo
#

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

rare meteor
#

Ah i see

#

Do i need to change something in the anaconda environment?

misty ginkgo
#

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

rare meteor
#

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

misty ginkgo
#

Good luck!

rare meteor
#

Thanks - any thoughts on where to head next for advice?

misty ginkgo
#

For the anaconda stuff?

rare meteor
#

Yeah or to resolve this issue

misty ginkgo
#

Either an anaconda or mingw specific discussion forum. You could try the github issues or mailing lists

#

Or if they have specific discords

rare meteor
#

Got it. Thanks again, have a good week

misty ginkgo
#

You as well.

#

Also, one "solution" may be to sandbox your installs in VMs/Containers

rare meteor
#

Hm i see

#

Not sure how to do that but I'm sure I can learn - I'll look into that

rain orioleBOT
#

@rare meteor Has your question been resolved? If so, type !solved :)

rare meteor
#

!solved