How can I execute C++ functions from Dlang?

Sergey kornburn at yandex.ru
Mon Aug 14 07:38:46 UTC 2023


On Monday, 14 August 2023 at 06:40:04 UTC, thePengüin wrote:
> hola a todos quisiera ejecutar este codigo de c++
> Error: linker exited with status 1

Hola.
On the page https://dlang.org/spec/cpp_interface.html
commands to run also have different flags. Did you try them?
> g++ -c foo.cpp
> dmd bar.d foo.o -L-lstdc++ && ./bar


More information about the Digitalmars-d-learn mailing list