// environ/hello1.c
#include <stdio.h>
int main()
{
printf("hello, world\n");
return 0;
}
// g++ hello1.c -o hello1.a
// g++ -static hello1.c -o hello1.b , error occurs and I didn't find out why
// link error
// /usr/bin/ld: cannot find -lm
// collect2: ld returned 1 exit status
转载于:https://www.cnblogs.com/sunyongjie1984/p/4262449.html
相关资源:UNIX环境高级编程(中文版 英文版 源代码)