Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的大学用的是linux操作系统,我们可以启动xserver然后会出现空的gui,我写了程序显示一行,我编译了代码就可以了。但是当我执行程序时它显示分段错误,如何在 gui 中执行程序?
如果您的程序出现段错误,则可能与 GUI 无关。您可能正试图访问您未被授予的内存。
对于如何编写 GUI 的问题,我最好的建议是使用 Qt 或 GTK 之类的库来抽象出难以理解的、奇怪的 Xserver 代码。