D - OpenCV in D??
- qadosh (4/4) Nov 03 2009 Hi!
- Edward Brekelbaum (10/14) Nov 03 2009 Hello,
- Ben (2/2) Jun 15 2010 How can I link to C libraries? I'm having trouble finding those resource...
- Robert Clipsham (6/8) Jun 16 2010 See: http://digitalmars.com/d/2.0/htomodule.html
Hi! I'm work in image processing with OpenCV library on C++. Can i use this library on D?? Thanks!
Nov 03 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
Nov 03 2009
How can I link to C libraries? I'm having trouble finding those resources. BTW: OpenCV is a C library.
Jun 15 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.
Jun 16 2010