Re: How can I execute C++ functions from Dlang?

2023-08-19 Thread thePengüin via Digitalmars-d-learn
On Monday, 14 August 2023 at 07:36:31 UTC, Ferhat Kurtulmuş wrote: On Monday, 14 August 2023 at 06:40:04 UTC, thePengüin wrote: hola a todos quisiera ejecutar este codigo de c++ ` #include \ using namespace std; int main() { return 0; } int foo(int i, int j) { cout

Re: How can I execute C++ functions from Dlang?

2023-08-19 Thread thePengüin via Digitalmars-d-learn
On Monday, 14 August 2023 at 07:36:31 UTC, Ferhat Kurtulmuş wrote: On Monday, 14 August 2023 at 06:40:04 UTC, thePengüin wrote: [...] ?Tu usas ambos de 64 bit o 32 bit para compiladores? No puedo reproducir tu codigo. Pero yo puedo ejecutar esto en Windows: cppcode.cpp ```d #include

Re: How can I execute C++ functions from Dlang?

2023-08-19 Thread thePengüin via Digitalmars-d-learn
On Monday, 14 August 2023 at 07:38:46 UTC, Sergey wrote: 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

Re: How can I execute C++ functions from Dlang?

2023-08-19 Thread thePengüin via Digitalmars-d-learn
On Saturday, 19 August 2023 at 20:16:47 UTC, Ferhat Kurtulmuş wrote: On Saturday, 19 August 2023 at 19:41:47 UTC, thePengüin wrote: On Monday, 14 August 2023 at 07:36:31 UTC, Ferhat Kurtulmuş wrote: On Monday, 14 August 2023 at 06:40:04 UTC, thePengüin wrote: hola a todos quisiera ejecutar

Re: How can I execute C++ functions from Dlang?

2023-08-19 Thread thePengüin via Digitalmars-d-learn
On Saturday, 19 August 2023 at 20:16:47 UTC, Ferhat Kurtulmuş wrote: On Saturday, 19 August 2023 at 19:41:47 UTC, thePengüin wrote: On Monday, 14 August 2023 at 07:36:31 UTC, Ferhat Kurtulmuş wrote: On Monday, 14 August 2023 at 06:40:04 UTC, thePengüin wrote: hola a todos quisiera ejecutar

How can I execute C++ functions from Dlang?

2023-08-14 Thread thePengüin via Digitalmars-d-learn
hola a todos quisiera ejecutar este codigo de c++ ` #include \ using namespace std; int main() { return 0; } int foo(int i, int j) { cout \<\< i\<\

Re: How to create an .exe without execute the terminal in Windows?

2023-08-12 Thread thePengüin via Digitalmars-d-learn
On Saturday, 12 August 2023 at 23:18:16 UTC, Adam D Ruppe wrote: On Saturday, 12 August 2023 at 23:13:39 UTC, thePengüin wrote: I would know how to make some this but in Dlang: best way is to use the linker switch. On Win32, you can pass -L/subsystem:windows if you don't want a console

Re: How to create an .exe without execute the terminal in Windows?

2023-08-12 Thread thePengüin via Digitalmars-d-learn
On Saturday, 12 August 2023 at 23:30:34 UTC, ryuukk_ wrote: On Saturday, 12 August 2023 at 23:22:20 UTC, thePengüin wrote: On Saturday, 12 August 2023 at 23:18:16 UTC, Adam D Ruppe wrote: [...] Where could I get more information? I can't find this link "import core.sys.windows.windows"