阅读背景:

使用-pthreads为Openwrt Linux编译C ++ - 获取分段错误

来源:互联网 

I´m pretty new to programming in C++ and I´m using pthreads. I´m cross compiling my code for OpenWRT but for some reason I get segmentation fault when I run the program on my board but it runs fine on my PC. I suspect that the error occurs in the linking stage of the compilation because I tried a small C program and that worked fine. Also if I change the name of the file to .cpp and compile it with g++ it also works.I´m pretty new to programming in C++ and I´m us




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: