On Saturday, 28 October 2017 at 02:20:42 UTC, codephantom wrote:
On Friday, 27 October 2017 at 17:14:20 UTC, sivakon wrote:
I want to use C++ libraries for machine learning and deep
learning. How do I add C++ libraries to my d code.
on FreeBSD, I use:
for C static binding:
On Friday, 27 October 2017 at 17:14:20 UTC, sivakon wrote:
I want to use C++ libraries for machine learning and deep
learning. How do I add C++ libraries to my d code.
on FreeBSD, I use:
for C static binding:
--
clang -c sample.c
dmd -L-lc foo.d sample.o
or
ldc -L-lc
On Friday, 27 October 2017 at 17:43:08 UTC, sivakon wrote:
On Friday, 27 October 2017 at 17:21:39 UTC, Joakim wrote:
This should work:
dmd foo.d Sample.o
Just like the C examples from the D blog:
https://dlang.org/blog/2017/10/25/dmd-windows-and-c/
Just used this! Got this error!
On 10/27/17 1:43 PM, sivakon wrote:
On Friday, 27 October 2017 at 17:21:39 UTC, Joakim wrote:
This should work:
dmd foo.d Sample.o
Just like the C examples from the D blog:
https://dlang.org/blog/2017/10/25/dmd-windows-and-c/
Just used this! Got this error!
sample.o: In function
On Friday, 27 October 2017 at 17:21:39 UTC, Joakim wrote:
This should work:
dmd foo.d Sample.o
Just like the C examples from the D blog:
https://dlang.org/blog/2017/10/25/dmd-windows-and-c/
Just used this! Got this error!
sample.o: In function `foo(int, int, int)':
On Friday, 27 October 2017 at 17:14:20 UTC, sivakon wrote:
Hi,
Just started to work with D. Great language.
I want to use C++ libraries for machine learning and deep
learning. How do I add C++ libraries to my d code.
For example,
//sample.cpp
#include
using namespace std;
int foo(int i,
Hi,
Just started to work with D. Great language.
I want to use C++ libraries for machine learning and deep
learning. How do I add C++ libraries to my d code.
For example,
//sample.cpp
#include
using namespace std;
int foo(int i, int j, int k)
{
cout << "i = " << i << endl;
cout