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
acado-master/acado/code_generation/export_function_declaration.cpp:44:82: error: reference member 'f' binds to a temporary object whose lifetime would be shorter than the lifetime of the constructed object ...) : ExportStatement( ), f( ExportFunction() ) ^~~~~~~~~~~~~~~~ /Users/Yuyang/Downloads/acado-master/acado/code_generation/export_function_declaration.hpp:104:25: note: reference member declared here const ExportFunction& f; ^ 1 error generated. make[2]: *** [acado/CMakeFiles/acado_toolkit_s.dir/code_generation/export_function_declaration.cpp.o] Error 1 make[1]: *** [acado/CMakeFiles/acado_toolkit_s.dir/all] Error 2 make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
Who can help me, thank you very much
Sorry, something went wrong.
fixes issue acado#261 binding to temporary object
a1b2938
Do you work on OSX? @yuyang01
@tomcattigerkkk got the same issue. The fix suggested by @heyyeh12 solves the problem.
It works on my mac.
Had the same issue on macOS big sur, fix by @heyyeh12 works :)
No branches or pull requests
acado-master/acado/code_generation/export_function_declaration.cpp:44:82: error:
reference member 'f' binds to a temporary object whose lifetime would be shorter
than the lifetime of the constructed object
...) : ExportStatement( ), f( ExportFunction() )
^~~~~~~~~~~~~~~~
/Users/Yuyang/Downloads/acado-master/acado/code_generation/export_function_declaration.hpp:104:25: note:
reference member declared here
const ExportFunction& f;
^
1 error generated.
make[2]: *** [acado/CMakeFiles/acado_toolkit_s.dir/code_generation/export_function_declaration.cpp.o] Error 1
make[1]: *** [acado/CMakeFiles/acado_toolkit_s.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: