我正在使用eclipse IDE。我在這裏有一些基本的源代碼,包括頭文件。一直在使用cygwin作爲C++編譯器。它編譯我的應用程序,它不會產生任何錯誤。但是我看不到IDE控制檯上的輸出。當我自己運行可執行文件時,它會產生輸出。如何配置Eclipse IDE以將輸出重定向到IDE控制檯?從Eclipse IDE運行C++應用程序
這是我得到的:
15:40:11 **** Incremental Build of configuration Debug for project GetCompiled ****
make all
Building target: GetCompiled.exe
Invoking: Cygwin C++ Linker
g++ -o "GetCompiled.exe" ./Compiling.o
cygwin warning:
MS-DOS style path detected: D:\Aristotelis\C++\GetCompiled\Debug
Preferred POSIX equivalent is: /cygdrive/d/Aristotelis/C++/GetCompiled/Debug
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Finished building target: GetCompiled.exe
15:40:12 Build Finished (took 702ms)
選定的應用程序運行:
我試圖通過選擇作爲C++應用程序運行從IDE運行的exe文件,但它確實不產生任何輸出。 致以問候
有不同的控制檯,檢查您正在使用哪一個,並嘗試其他。 – dutt