Comments (4)
What's the output of g++ -v ptrs.cpp
? wchar.h is part of MinGW so it should be in the x86_64-w64-mingw32/include directory
from gnu-toolchain-for-windows.
Using built-in specs.
COLLECT_GCC=C:\gcc11\gcc\bin\g++
COLLECT_LTO_WRAPPER=c:/gcc11/gcc/bin/../libexec/gcc/x86_64-w64-mingw32/11/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../configure --target=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --disable-bootstrap --enable-libstdcxx-debug --with-tune=znver1 --prefix=/mnt/c/GCC --with-sysroot=/mnt/c/GCC-Build/NewestLinux --with-build-sysroot=/mnt/c/GCC-Build/NewestLinux --disable-libstdcxx-pch --disable-multilib --enable-libgomp --with-cross-host --with-libiconv-prefix=/mnt/c/GCC-Build/NewestLinux/Libraries --disable-libstdcxx-verbose --enable-languages=c,c++,fortran,lto,objc,obj-c++ --disable-nls --disable-win32-registry --enable-shared --with-gnu-as --with-gnu-ld --enable-threads=posix --program-suffix=-11 --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-__cxa_atexit --enable-plugin --program-prefix=
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.0.0 20201110 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=znver1' '-march=x86-64' '-dumpdir' 'a-'
c:/gcc11/gcc/bin/../libexec/gcc/x86_64-w64-mingw32/11/cc1plus.exe -quiet -v -iprefix c:\gcc11\gcc\bin\../lib/gcc/x86_64-w64-mingw32/11/ -D_REENTRANT ptrs.cpp -quiet -dumpdir a- -dumpbase ptrs.cpp -dumpbase-ext .cpp -mtune=znver1 -march=x86-64 -version -o C:\Users\jett\AppData\Local\Temp\ccUipPZT.s
GNU C++17 (GCC) version 11.0.0 20201110 (experimental) (x86_64-w64-mingw32)
compiled by GNU C version 10.2.1 20200804, GMP version 6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.22-GMP
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory "c:\gcc11\gcc\bin\../lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/include"
ignoring duplicate directory "c:/gcc11/gcc/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/11/include/c++"
ignoring duplicate directory "c:/gcc11/gcc/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/11/include/c++/x86_64-w64-mingw32"
ignoring duplicate directory "c:/gcc11/gcc/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/11/include/c++/backward"
ignoring duplicate directory "c:/gcc11/gcc/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/11/include"
ignoring nonexistent directory "/mnt/c/GCC-Build/NewestLinux/mnt/c/GCC/lib/gcc/x86_64-w64-mingw32/11/../../../../include"
ignoring duplicate directory "c:/gcc11/gcc/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/11/include-fixed"
ignoring nonexistent directory "c:/gcc11/gcc/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/include"
ignoring nonexistent directory "/mnt/c/GCC-Build/NewestLinux/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
c:\gcc11\gcc\bin\../lib/gcc/x86_64-w64-mingw32/11/include/c++
c:\gcc11\gcc\bin\../lib/gcc/x86_64-w64-mingw32/11/include/c++/x86_64-w64-mingw32
c:\gcc11\gcc\bin\../lib/gcc/x86_64-w64-mingw32/11/include/c++/backward
c:\gcc11\gcc\bin\../lib/gcc/x86_64-w64-mingw32/11/include
c:\gcc11\gcc\bin\../lib/gcc/x86_64-w64-mingw32/11/include-fixed
End of search list.
GNU C++17 (GCC) version 11.0.0 20201110 (experimental) (x86_64-w64-mingw32)
compiled by GNU C version 10.2.1 20200804, GMP version 6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.22-GMP
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 549845ecba30700c7d4bcb9917032570
In file included from c:\gcc11\gcc\lib\gcc\x86_64-w64-mingw32\11\include\c++\bits\postypes.h:40,
from c:\gcc11\gcc\lib\gcc\x86_64-w64-mingw32\11\include\c++\iosfwd:40,
from c:\gcc11\gcc\lib\gcc\x86_64-w64-mingw32\11\include\c++\ios:38,
from c:\gcc11\gcc\lib\gcc\x86_64-w64-mingw32\11\include\c++\ostream:38,
from c:\gcc11\gcc\lib\gcc\x86_64-w64-mingw32\11\include\c++\iostream:39,
from demo:2,
from ptrs.cpp:1:
c:\gcc11\gcc\lib\gcc\x86_64-w64-mingw32\11\include\c++\cwchar:44:10: fatal error: wchar.h: No such file or directory
44 | #include <wchar.h>
| ^~~~~~~~~
compilation terminated.
from gnu-toolchain-for-windows.
ignoring nonexistent directory "c:/gcc11/gcc/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/include"
Could it be that for some reason the directory C:\gcc11\gcc\x86_64-w64-mingw32\include does not exist on your machine?
from gnu-toolchain-for-windows.
Ah, yes, sorry about that.
from gnu-toolchain-for-windows.
Related Issues (5)
- Add new branch of build HOT 2
- Adding boost to default libraries HOT 2
- ld problem HOT 2
- gcc start c++23 cupport HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnu-toolchain-for-windows.