You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The template offers good support for C projects and attempts to include C++ projects as well.
Unfortunately, when using C++ files, the rules.mk fails to include C++ standard library -lstdc++ which can result in undefined reference to various objects.
Fix
You can add a few lines to rules.mk to check for CXXFILES and add the -lstdc++ if necessary.
Issue
The template offers good support for C projects and attempts to include C++ projects as well.
Unfortunately, when using C++ files, the
rules.mk
fails to include C++ standard library-lstdc++
which can result inundefined reference
to various objects.Fix
You can add a few lines to
rules.mk
to check forCXXFILES
and add the-lstdc++
if necessary.Example Fix
The text was updated successfully, but these errors were encountered: