×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / 请教关于unix下多线程编程问题:请问pthread_create(),pthread_exit(),pthread_join()这些函数是linux下专用的函数还是unix系统通用的标准函数库?
    • 是POSIX中定义的标准函数,可以在多种UNIX平台上使用。
      • 多谢。还有:刚安装了redhat linux 7.1, 在linux 中开发c++程序用什么工具比较好?unix通用的c,c++开发工具是什么? (不好意思,unix下实在是个新手)
        • 在Solaris中有CC, gcc, g++, 在linux下肯定有gcc,这是指编译器。
          • I tried to compile a c/c++ source code file with a command: cc abc.c and get no executable file but abc.o file. How to compile the source code with gcc? Thanks!
            I tried to compile a c/c++ source code file with a command: cc abc.c and get no executable file but abc.o file. How to compile the source code with gcc? Thanks!
            • use 'gcc abc.c abc'
            • you need give an exe file name, if you don't give it, compiler use xx.o as default.
              • Thanks!
        • gcc
        • 谢谢楼上二位。
        • You can download Linux HOWTO from http://www.linuxdoc.org/
          *.o files are object files. Use -o ExeFileName to define a runable output.

          There are many helpful Linux links such as:
          http://www.justlinux.com/
          http://www.linuxtoday.com/

          You can go to many others from there as a start point.