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

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’ve tried moving MinGW over to FreePascal’s directory but that didn’t help either. 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/includeEnd 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?I’ve asked this question in the FreePascal forums too.


Viewing all articles
Browse latest Browse all 22261


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