Thread overview
OpenCV in D??
Nov 03, 2009
qadosh
Nov 04, 2009
Edward Brekelbaum
Jun 16, 2010
Ben
Jun 16, 2010
Robert Clipsham
November 03, 2009
Hi!
I'm work in image processing with OpenCV library on C++. Can i use
this library on D??
Thanks!
November 04, 2009
Hello,

"qadosh" <qadosh@gmail.com> wrote in message news:hcppq3$dle$1@digitalmars.com...
> Hi!
> I'm work in image processing with OpenCV library on C++. Can i use
> this library on D??
> Thanks!


The D group is now obsolete.  You should ask your question in digitalmars.D.learn.

In general, C++ is not usable from D (or anything else, that is the problem).  You can define C functions (extern "C") for some functionality, and D can link to C.

Hope that helps,
Ned

June 16, 2010
How can I link to C libraries? I'm having trouble finding those resources.


BTW: OpenCV is a C library.
June 16, 2010
On 16/06/10 04:02, Ben wrote:
> How can I link to C libraries? I'm having trouble finding those resources.
>
>
> BTW: OpenCV is a C library.

See: http://digitalmars.com/d/2.0/htomodule.html

It's a simple case of converting the C headers to D modules, then linking in the library with the -l switch. You should also take a look at http://www.dsource.org/projects/bcd which can automate the process for you.