Chinaunix

标题: esql -s -o aaa a.ec b.c -lx -lcurses -static 什么意思? [打印本页]

作者: tjppp    时间: 2006-02-21 16:40
标题: esql -s -o aaa a.ec b.c -lx -lcurses -static 什么意思?
用esql/c 编程,看到一条预编译如下:
esql -s -o aaa a.ec b.c -lx -lcurses -static

请问,-s 是什么意思?
   -lx是什么意思?

谁有比较全的esql/c电子书?
作者: wenlq    时间: 2006-02-21 16:52
都是ld 的参数,
   -s
          Strip symbolic information from the output file. The debug and
          line sections and their associated relocation entries will be
          removed. Except for relocatable files or shared objects, the
          symbol table and string table sections will also be removed
          from the output object file.
   -lx
          Search a library libx.so or libx.a, the conventional names for
          shared object and archive libraries, respectively. In dynamic
          mode, unless the -Bstatic option is in effect, ld searches each
          directory specified in the library search path for a file
          libx.so or libx.a. The directory search stops at the first
          directory containing either. ld chooses the file ending in .so
          if -lx expands to two files whose names are of the form libx.so
          and libx.a. If no libx.so is found, then ld accepts libx.a. In
          static mode, or when the -Bstatic option is in effect, ld
          selects only the file ending in .a. A library is searched when
          its name is encountered, so the order of the -l, -B and -L is
          significant.
作者: tjppp    时间: 2006-02-21 17:16
谢谢阿!
什么是ld?我用man ld 不成啊?
作者: wenlq    时间: 2006-02-22 09:08
ld 是编译程序的连接程序。cc 会调用它。
你的什么环境,是不是没装man?
作者: tjppp    时间: 2006-02-22 10:35
我是 sco unix 5.05
man 是有的,比如 man ls 就能看到联机帮助,但man ld 就不成了
作者: wenlq    时间: 2006-02-22 11:59
是不是没装 开发系统?
man cc 有没有?
作者: 大梦    时间: 2006-02-22 17:04
esql --




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2