We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I try to build with clang I get this error when it is compiling [66/137] Building CXX object CMakeFiles/draco_io.dir/src/draco/io/stdio_file_reader.cc.obj FAILED: CMakeFiles/draco_io.dir/src/draco/io/stdio_file_reader.cc.obj C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -DDRACO_CMAKE=1 -DDRACO_FLAGS_SRCDIR=\"C:/Users/kayra/draco\" -DDRACO_FLAGS_TMPDIR=\"/tmp\" -DNOMINMAX=1 -D_CRT_SECURE_NO_DEPRECATE=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -IC:/Users/kayra/draco -IC:/Users/kayra/draco/src -IC:/Users/kayra/draco/build -O0 -g -Xclang -gcodeview -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd -Wno-implicit-const-int-float-conversion -MD -MT CMakeFiles/draco_io.dir/src/draco/io/stdio_file_reader.cc.obj -MF CMakeFiles\draco_io.dir\src\draco\io\stdio_file_reader.cc.obj.d -o CMakeFiles/draco_io.dir/src/draco/io/stdio_file_reader.cc.obj -c C:/Users/kayra/draco/src/draco/io/stdio_file_reader.cc C:/Users/kayra/draco/src/draco/io/stdio_file_reader.cc:91:48: error: use of undeclared identifier 'ftello'; did you mean 'ftell'? const size_t file_size = static_cast<size_t>(ftello(file_)); ^~~~~~ ftell C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stdio.h:286:27: note: 'ftell' declared here _ACRTIMP long __cdecl ftell( ^ 1 error generated. [83/137] Building CXX object CMakeFiles/draco_mesh.dir/src/draco/mesh/mesh_cleanup.cc.obj ninja: build stopped: subcommand failed.
[66/137] Building CXX object CMakeFiles/draco_io.dir/src/draco/io/stdio_file_reader.cc.obj FAILED: CMakeFiles/draco_io.dir/src/draco/io/stdio_file_reader.cc.obj C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -DDRACO_CMAKE=1 -DDRACO_FLAGS_SRCDIR=\"C:/Users/kayra/draco\" -DDRACO_FLAGS_TMPDIR=\"/tmp\" -DNOMINMAX=1 -D_CRT_SECURE_NO_DEPRECATE=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -IC:/Users/kayra/draco -IC:/Users/kayra/draco/src -IC:/Users/kayra/draco/build -O0 -g -Xclang -gcodeview -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd -Wno-implicit-const-int-float-conversion -MD -MT CMakeFiles/draco_io.dir/src/draco/io/stdio_file_reader.cc.obj -MF CMakeFiles\draco_io.dir\src\draco\io\stdio_file_reader.cc.obj.d -o CMakeFiles/draco_io.dir/src/draco/io/stdio_file_reader.cc.obj -c C:/Users/kayra/draco/src/draco/io/stdio_file_reader.cc C:/Users/kayra/draco/src/draco/io/stdio_file_reader.cc:91:48: error: use of undeclared identifier 'ftello'; did you mean 'ftell'? const size_t file_size = static_cast<size_t>(ftello(file_)); ^~~~~~ ftell C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stdio.h:286:27: note: 'ftell' declared here _ACRTIMP long __cdecl ftell( ^ 1 error generated. [83/137] Building CXX object CMakeFiles/draco_mesh.dir/src/draco/mesh/mesh_cleanup.cc.obj ninja: build stopped: subcommand failed.
These are my cmake environment variables CMAKE_GENERATOR -> ninja CC -> clang CXX -> clang++
When I try to compile using visual studio generator everything works but with ninja and clang it doesnt
The text was updated successfully, but these errors were encountered:
Fix build error on Windows with Clang
17a1567
Resolves google#1018
Successfully merging a pull request may close this issue.
When I try to build with clang I get this error when it is compiling
[66/137] Building CXX object CMakeFiles/draco_io.dir/src/draco/io/stdio_file_reader.cc.obj FAILED: CMakeFiles/draco_io.dir/src/draco/io/stdio_file_reader.cc.obj C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -DDRACO_CMAKE=1 -DDRACO_FLAGS_SRCDIR=\"C:/Users/kayra/draco\" -DDRACO_FLAGS_TMPDIR=\"/tmp\" -DNOMINMAX=1 -D_CRT_SECURE_NO_DEPRECATE=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -IC:/Users/kayra/draco -IC:/Users/kayra/draco/src -IC:/Users/kayra/draco/build -O0 -g -Xclang -gcodeview -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd -Wno-implicit-const-int-float-conversion -MD -MT CMakeFiles/draco_io.dir/src/draco/io/stdio_file_reader.cc.obj -MF CMakeFiles\draco_io.dir\src\draco\io\stdio_file_reader.cc.obj.d -o CMakeFiles/draco_io.dir/src/draco/io/stdio_file_reader.cc.obj -c C:/Users/kayra/draco/src/draco/io/stdio_file_reader.cc C:/Users/kayra/draco/src/draco/io/stdio_file_reader.cc:91:48: error: use of undeclared identifier 'ftello'; did you mean 'ftell'? const size_t file_size = static_cast<size_t>(ftello(file_)); ^~~~~~ ftell C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stdio.h:286:27: note: 'ftell' declared here _ACRTIMP long __cdecl ftell( ^ 1 error generated. [83/137] Building CXX object CMakeFiles/draco_mesh.dir/src/draco/mesh/mesh_cleanup.cc.obj ninja: build stopped: subcommand failed.
These are my cmake environment variables
CMAKE_GENERATOR -> ninja
CC -> clang
CXX -> clang++
When I try to compile using visual studio generator everything works but with ninja and clang it doesnt
The text was updated successfully, but these errors were encountered: