Cygwin1.dll 'not found' when running a program written in C. How can I make Windows find it?

前端 未结 4 898
忘掉有多难
忘掉有多难 2021-01-05 00:50

So I\'m trying to run my first hello world prog written in C. I compiled it in eclipse and get no errors, but when I try to run it I get:

\"This application has fail

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-05 01:52

    Add: ;C\cygwin64\bin to the end of your Windows system PATH variable.

    Also, to compile for use in CMD or PowerShell, you may need to use:

    x86_64-w64-mingw32-g++.exe -static -std=c++11 prog_name.cc -o prog_name.exe
    

    (This invokes the cross-compiler, if installed.)

提交回复
热议问题