Hi,

I don't know if you can reset the default without recompiling gcc - I
suspect you can't, but others might know better.

Closest I can get to satisfying your spec is to create a batch file called
"gcc.bat" that contains the following 2 lines:

@echo off
C:/_64/gcc-mingw-810/mingw64/bin/gcc.exe
--sysroot=C:/_64/gcc-mingw-810/mingw64 %*

Then place that file so that it is found in the path *before* gcc.exe.
When I do that, I get:

C:\_64>gcc --print-sysroot
C:/_64/gcc-mingw-810/mingw64

If I remove that "gcc.bat" file, I get (like you):

C:\_64>gcc --print-sysroot
C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64

HTH.

Cheers,
Rob





On Sun, Dec 16, 2018 at 4:40 AM Maarten Verhage <[email protected]>
wrote:

> Hi all,
>
> This might be a naive question. I have Windows 7. I downloaded MinGW-W64
> GCC-8.1.0 x86_64-posix-seh. And extracted in to my harddisk. I added the
> bin
> folder to my PATH.
>
> now when I do: gcc --print-sysroot
> I'm getting:
> C:/mingw810/x86_64-8.1.0-posix-seh-rt-_v6-rev0/mingw64
>
> This is not the path I installed mingw and gcc into.
>
> How would I be able to set the *default* sysroot path on my system?
>
> I prefer not to msys(2) tools if possible.
>
> Thanks, best regards,
> Maarten Verhage
>
>
>
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to