Note that there are some explanatory texts on larger screens.

plurals
  1. POCDT does not find Cygwin gcc include files correctly, even after stating include paths
    primarykey
    data
    text
    <p>I have a rather embarrasing question, as this problem was no issue on a linux machine and on my Windows XP machine. But now, after having finally switched to Windows 7 64bit, I ran into the basic problem of making Eclipse find my C++ include files...</p> <p><strong>My setting:</strong><br> I am running Windows 7 64bit. I have installed cygwin to "C:\Program Files\cygwin" and Eclipse Juno 64bit to "C:\Program Files\eclipse".</p> <p><strong>My problem:</strong><br> I created a basic "Hello World" C++ Makefile project with Cygwin toolchain. Compilation works without problems, but Eclipse still complains that it cannot find the include to "iostream".</p> <p><strong>What I tried:</strong><br> In Project Properties -> C/C++ General -> Paths and Symbols -> Includes, I set the Include directory for GNU C and GNU C++ to</p> <pre><code>C:\Program Files\cygwin\lib\gcc\i686-pc-cygwin\4.5.3\include </code></pre> <p>which contains the iostream include in a subdirectory. <strong>This didn't work</strong></p> <p>Then I tried the exact directory</p> <pre><code>C:\Program Files\cygwin\lib\gcc\i686-pc-cygwin\4.5.3\include\C++ </code></pre> <p>containing iostream. This time, the include was found, but even after rebuilding the index, Eclipse still coulnd't resolve std, cout and endl. Then I tried the include directory of the 3.x version of gcc</p> <pre><code>C:\Program Files\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\include\C++ </code></pre> <p>and it worked. Unfortunately, I require the 4.x version of gcc, so this is no permanent solution for me.</p> <p><strong>My Question:</strong><br> How I can I resolve this problem and make Eclipse find the gcc 4.x include directories and use them correctly?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload