How to include, link c++ library on haiku. Dig Haiku
Haiku OS - Haiku OS
c++ compiler - Gcc
Your favorite c++ Library, for example, your_lib, the shared library: libyour_lib.so
Editor - Kakoune
// hello.cpp
#include <iostream> #include <your/lib/include/path.hpp> int main() { std::cout << "Hello, c++!" << std::endl; use::your::lib::please; }
g++ hello.cpp \ -std=c++23 \ -I ./dream/sand/include/ \ -L./path/to/your/lib -lyour_lib \ -Wl,-rpath,./dream/sand/lib \ -o hello
Haiku Home - Haiku OS
Back Index - Dig Haiku OS c++
c++ std::exception:
std::cout.write(err.data(), err.size());
std::cout << std::endl;
caught:
================================================== # The c++ programming language. # # # # Home: cppfx.xyz # # Join c++ Discord: yZcauUAUyC # # Deck # ==================================================