Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 15 Import of C++ module 'Darwin.C.time' appears within extern "C" language linkage specification

Tags:

xcode

#if defined(__cplusplus)
extern "C"
{
#endif
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/imgutils.h>
#include <libswscale/swscale.h>
#include <libswresample/swresample.h>
#if defined(__cplusplus)
}
#endif
like image 305
Coder Avatar asked Oct 29 '25 02:10

Coder


1 Answers

add -Wno-module-import-in-extern-c to 'Apple CLang - Custom Compiler Flags -> Other C++ '

like image 188
Vladimir Koltunov Avatar answered Nov 01 '25 14:11

Vladimir Koltunov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!