avatar
c*n
1
I am learning how to program on X Window. Here are some simple scripts tha
could not run. Could you guys please help me?
theDisplay=XOpenDisplay(NULL);
if (theDisplay==NULL)
{.....}
When I compile this .c file by command cc, it is shown that
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (test.o) was d
etected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
XOpenDisplay (code)
Does this infomation mean the compiler/linker is o
avatar
p*m
2
maybe during linking, you havn't setting the libraries for X11.
the right format shoult be:
cc this.c -o this -lx11 -L/usr/X/lib/x11
use -l to specify the library name
-L to specify the path for library
在 coolman (snail) 的大作中提到: 】
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。