Skip to content
New issue

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

error: invalid argument '-std=c99' not allowed with 'C++' #5584

Open
sam3961 opened this issue Mar 13, 2024 · 1 comment
Open

error: invalid argument '-std=c99' not allowed with 'C++' #5584

sam3961 opened this issue Mar 13, 2024 · 1 comment

Comments

@sam3961
Copy link

sam3961 commented Mar 13, 2024

I compiled ijk player successfully, but when i compile ijk with my project i am getting this issue:

[armeabi-v7a] Compile++ thumb: ijkplayer <= ijkstl.cpp

fcntl(): Bad file descriptor error: invalid argument '-std=c99' not allowed with 'C++' make: *** [/Users/itechnolabs/Library/Android/sdk/ndk/21.0.6113669/build/core/build-binary.mk:478: /Users/itechnolabs/camcloud-android-v2/camcloudLib/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/ijkplayer/ijkavutil/ijkstl.o] Error 1

Can someone please help me.

Thanks

@focuseyes360
Copy link

focuseyes360 commented Apr 23, 2024

I guess that , ijkplayer/android/ijkplayer/ijkplayer-arm64/src/main/jni/ijkmedia/ijkplayer,at the direction,the makefile can't be added as follow: LOCAL_CFLAGS += -std=c99;just remove it! This file :mijkplayer/android/ijkplayer/ijkplayer-arm64/src/main/jni/ijkmedia/ijkplayer/ijkavutil/ijkstl.cpp is a c++ file ,if add -std=c99 global flag,the compiler can't transfer c++ to c standard(c99 standard not compatible for c++)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants