g++ 컴파일 옵션중에 -mt 가 의미하는 것이 multithreading 인가요?

litnsio2의 이미지


solaris10 에서 qt4 를 컴파일하고 있습니다.. 컴파일중에 계속 에러가 나는데,, 확인해보니 -mt 옵션때문인 것 같습니다. (해당 옵션을 지워주면 컴파일이 되더군요)

-mt 옵션을 주면,

cc1plus: error: invalid option 't'

라는 에러가 나더군요..

이 옵션을 지워주고 컴파일을 하는중이긴 한데, 이래도 되는건지 모르겠습니다. =_=;
참고로 서버 app에서 qt 라이브러리를 사용합니다.. 당근 스레드를 사용하고요..

bushi의 이미지

multi-thread 를 뜻하는 것 같습니다.

on HP-UX

-mt
-pthread
  Add support for multithreading using the POSIX threads library.
  This option sets flags for both the preprocessor and linker.  It
  does not affect the thread safety of object code produced by the
  compiler or that of libraries supplied with it.  These are HP-UX
  specific flags.

on Solaris

-threads
  Add support for multithreading using the Solaris threads library.
  This option sets flags for both the preprocessor and linker.  This
  option does not affect the thread safety of object code produced by
  the compiler or that of libraries supplied with it.
 
-pthreads
  Add support for multithreading using the POSIX threads library.
  This option sets flags for both the preprocessor and linker.  This
  option does not affect the thread safety of object code produced
  by the compiler or that of libraries supplied with it.