pytorch / vision

Datasets, Transforms and Models specific to Computer Vision
https://pytorch.org/vision
BSD 3-Clause "New" or "Revised" License
16.04k stars 6.93k forks source link

error: invalid argument '-std=c++17' not allowed with 'C' #8635

Closed yurivict closed 2 weeks ago

yurivict commented 3 weeks ago

🐛 Describe the bug

The build uses -std=c++17 with the C source dgif_lib.c which isn't allowed.

log

Version: 0.19.1 clang-18 FreeBSD 14.1

Versions

n/a

NicolasHug commented 2 weeks ago

Thanks for the report @yurivict . I think this is the same issue as https://github.com/pytorch/vision/issues/8421 so I'll close it to avoid duplicating. There are suggestions on how to fix the problem in https://github.com/pytorch/vision/issues/8421, let me know if you'd like to open a PR to fix it.