Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22287

GCC won't work properly (a conflict with FreePascal)

$
0
0

I've installed MinGW and set the PATH, but gcc doesn't see the included files like stdio.h. I've typed "where gcc" and found out that FreePascal comes with gcc. Apparently my PC is using gcc that comes with it, even though it's not set in the PATH and I don't know how FreePascal's gcc managed to become the default option. However, I can't delete FreePascal for now.

I tried moving MinGW over to FreePascal's directory but that didn't help. "Gcc -v" says:

    #include "..." search starts here:    End of search list.

And then it adds:

    The following default directories have been omitted from the search path:    /gcc-2.95/lib/gcc-lib/i386-mingw32/2.95/../../../../include/g++-3    /gcc-2.95/lib/gcc-lib/i386-mingw32/2.95/../../../../include    /gcc-2.95/lib/gcc-lib/i386-mingw32/2.95/../../../../i386-mingw32/include    /gcc-2.95/lib/gcc-lib/i386-mingw32/2.95/include    /usr/local/i386-mingw32/include    End of omitted list.    empty.c:1: No include path in which to find stdio.h

I don't have these default directories anywhere, so it's fine that they're omitted, I guess. But the end result is still that the PATH is ignored.

Any ideas? Can I fix this mess without uninstalling FreePascal?


Viewing all articles
Browse latest Browse all 22287

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>