cygwin g++ produces no output

后端 未结 3 1999
北海茫月
北海茫月 2021-01-16 06:15

I just installed g++ from cygwin, when I try to compile a C++ file I am not getting any executable produced by the compiler, see example below. What\'s going wrong?

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-16 06:57

    You should be able to run any Cygwin program from the DOS prompt since Cygwin is not an operating system like Linux, it is primarily a special DLL that programs link against + tools. However, in this case, I suspect that path issues are preventing g++ from running, either the path to g++ itself or to some libs g++ requires. Cygwin apps are notoriously bad at giving any info when they don't run, and the solution is to run them via strace.

    C:\cygwin\bin> strace g++

    Then any issues will be shown in a windows dialog box.

提交回复
热议问题