Thread overview | ||||||
---|---|---|---|---|---|---|
|
November 03, 2009 OpenCV in D?? | ||||
---|---|---|---|---|
| ||||
Hi! I'm work in image processing with OpenCV library on C++. Can i use this library on D?? Thanks! |
November 04, 2009 Re: OpenCV in D?? | ||||
---|---|---|---|---|
| ||||
Posted in reply to qadosh | 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 Re: OpenCV in D?? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Edward Brekelbaum | How can I link to C libraries? I'm having trouble finding those resources. BTW: OpenCV is a C library. |
June 16, 2010 Re: OpenCV in D?? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ben | 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. |
Copyright © 1999-2021 by the D Language Foundation