Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Is path to cygwin automatically added?

Hi,

I'm having Cygwin and MinGW installed on my computer. I want CDT to use the MinGW tools. To achieve this, I thought it's enough to make sure that the path to the MinGW binaries is listed before the path to the Cygwin binaries in Windows' PATH variable (I actually even removed the path to cygwin...)

When building from the command line (using the Makefiles generated by Eclipse), everything is fine, i.e. the tools from MinGW ar used. However, when using Eclipse to build the project, it uses the cygwin tools. I could track down the problem and found out, that Eclipse added the path to the Cygwin libraries to the PATH variable itself. And as the cygwin path comes first, CDT consequently uses the cygwin tools. (I found that in Project -> Properties -> C/C++ Build -> Configuration Settings -> Environment. There, under System Variables the PATH variable is listed with the above problem.)

To sum up, when I check the PATH variable in Windows' environment variables dialog and also on the command line, it does NOT contain the path to the cygwin binaries. However, in Eclipse the path is suddenly there.

Does anybody have an idea how this can be fixed, i.e. how I can remove the path to cygwin from the PATH variable that is used by Eclipse?

Thanks,

Stefan


Back to the top