getcwd() segmentation fault Topic is solved
getcwd() segmentation fault
hey, i have application that is running perfectly fine on windows, but when it try to build and launch it on linux(ubntu 21.04) i get segmentantion fault on getcwd function.wxWidgets version 3.1.4 is built as static with unicode, would appreciate any help.
Re: getcwd() segmentation fault
Most likely this call get executed before wxWidgets is initialized, because you're using it to initialize a global variable.
Move the respective code to wxApp::OnInit()
Move the respective code to wxApp::OnInit()
Use the source, Luke!