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
Hi, When compiling threadx with g++ compilers, some errors are thrown. this request is about fixing all those errors.
PS: attached the error log when compilinga project using arm-none-g++.(not all files where compiled in this project). build_errors.txt
The text was updated successfully, but these errors were encountered:
It appears you are using g++ to compile ThreadX code. ThreadX is written in C not C++, so try using gcc instead of g++.
g++
gcc
In case you want to compile C++ code with ThreadX header files, set the compiler flag -fpermissive.
-fpermissive
I tend to add the following line to my CMakefiles for mixed language (C/C++)projects:
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fpermissive>) # Allow passing const char * to char * in C++
I hope that helps to overcome your compilation issue.
Sorry, something went wrong.
No branches or pull requests
Hi,
When compiling threadx with g++ compilers, some errors are thrown.
this request is about fixing all those errors.
PS: attached the error log when compilinga project using arm-none-g++.(not all files where compiled in this project).
build_errors.txt
The text was updated successfully, but these errors were encountered: