开发者

Execute X11 program from linux [closed]

开发者 https://www.devze.com 2023-03-11 21:48 出处:网络
It's 开发者_运维技巧difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form.
It's 开发者_运维技巧difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

My college uses a linux os, we can start xserver and then empty gui will appear, i wrote program to display a line, i compiled the code it 's fine. but when i execute the program it shows segmentation fault, how to execute the program in gui??


If your program segfaults, it probably has nothing to do with the GUI. You are probably attempting to access memory you weren't granted.

For your question on how to program a GUI, my best suggestion would be to use a library like Qt or GTK to abstract away the hard, strange Xserver code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号