Using C++ std::array

Hello fellow HAIKU developers,

is it possible to use C++ std::array in an Genio project?

Do I need to add a library to the Makefile to build the

project? Genio is shouting at me about an unreferenced

std::array in my project.

Greetings,

Fabian

Yes, by default the C++ library is not automatically added, as you can perfectly use such IDE but also the makefile-engine to build C only code, for instance, or use C++ but only use the Haiku C++ libs and nothing from the standard C++ libs.

if you use a Makefile relying on system default makefile-engine, check that $(STDCPPLIBS) is added to the LIBS variable, and it should be enough.

If instead you use a custom makefile, or reusing a makefile from a foreign platform, then you should locate where linked libs are defined in this file, and add -lstdc++ -lsupc++.