avatar
关于一个C++library的连接# Unix - 噫吁兮,危乎高哉
a*d
1
没有什么创新感,不论视觉,画面,剧情,等等都没有突破感,老谋确实与奥斯卡无缘
avatar
b*l
2
I am having apache server under solaris, in a CGI in C, using
1. system ("cd /my/program/ ; make");---> to generat A(executable) from A.cc,
it works
2. system ("cd /my/program/; A"); ------> want to get A executed, but can
not, and the return value of the 2nd system call is 35072,(1st is 0) dont know
what it stands for. check the error_log of apache server, it keeps on saying
some library can not be found, but i dont think it is because of this, the 2nd
system call cant work, since if I type "c
avatar
X*r
3
It might be that some library cannot be found. try ldd A to see which
dynamic libraries it needs to run.

【在 b**l 的大作中提到】
: I am having apache server under solaris, in a CGI in C, using
: 1. system ("cd /my/program/ ; make");---> to generat A(executable) from A.cc,
: it works
: 2. system ("cd /my/program/; A"); ------> want to get A executed, but can
: not, and the return value of the 2nd system call is 35072,(1st is 0) dont know
: what it stands for. check the error_log of apache server, it keeps on saying
: some library can not be found, but i dont think it is because of this, the 2nd
: system call cant work, since if I type "c

avatar
p*f
4

check the manpage of system and waitpid for the explanation of error code.
i would suggest you try system("/my/program/A") or system("cd ...; ./A")
system function use /bin/sh, instead of your login shell, RTFM.

【在 b**l 的大作中提到】
: I am having apache server under solaris, in a CGI in C, using
: 1. system ("cd /my/program/ ; make");---> to generat A(executable) from A.cc,
: it works
: 2. system ("cd /my/program/; A"); ------> want to get A executed, but can
: not, and the return value of the 2nd system call is 35072,(1st is 0) dont know
: what it stands for. check the error_log of apache server, it keeps on saying
: some library can not be found, but i dont think it is because of this, the 2nd
: system call cant work, since if I type "c

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。