The previous one appears to be a linkage problem with filesystem-related libraries. If your compiler supports C++17, then I suggest you remove everything in your build folder and try rebuilding, and in the ccmake configuration, manually set the C++ standard to 17. If this does not help then maybe there is a problem with your compiler installation...
As for the bad_alloc thing, it is usually a failed memory allocation attempt. Since this demo is small in scale, it is more likely due to that you have no GPU devices/GPU devices not accessible by the system/no proper GPU driver or CUDA runtime installation. Thank you, Ruochun On Thursday, October 10, 2024 at 1:33:06 PM UTC+8 [email protected] wrote: > when i run the demo, there is also a error as shown below. > [image: 微信图片_20241010132851.jpg] > > On Thursday, October 10, 2024 at 10:53:23 AM UTC+8 Weigang Shen wrote: > >> Thank you! This problem has been solved. However, there is a new error as >> shown below. >> [image: 微信图片_20241010105032.jpg] >> >> Thank you, >> Weigang >> >> On Thursday, October 10, 2024 at 9:46:36 AM UTC+8 Ruochun Zhang wrote: >> >>> You are probably using an old GCC version, as you'll need a >>> C++17-compatible compiler. You may use GCC 8 or newer. >>> >>> Thank you, >>> Ruochun >>> >>> On Wednesday, October 9, 2024 at 10:16:04 AM UTC+8 [email protected] >>> wrote: >>> >>>> Hi Ruochun, >>>> >>>> I am now encountering such a problem. Could you give me a help? >>>> [image: 微信图片_20241009101157.jpg] >>>> >>>> Thank you, >>>> Weigang >>>> >>>> -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/9457a6f5-a6ed-48bf-8138-26aa916ce3d3n%40googlegroups.com.
