prabindh / darknet

Convolutional Neural Networks
http://pjreddie.com/darknet/
Other
122 stars 46 forks source link

extern "C" #15

Closed WillieMaddox closed 6 years ago

WillieMaddox commented 7 years ago

Is the extern "C" necessary in network.h? I've been able to compile darknet-cpp and libdarknet-cpp-shared.so just fine without it. I mainly run the detector though so I'm not sure if other runners need it.

prabindh commented 7 years ago

Could you please share the Makefile used ?

prabindh commented 7 years ago

Specifically the config flags used.

WillieMaddox commented 7 years ago

Right, I forgot: GPU=1 CUDNN=1 OPENCV=1 DEBUG=1 (or 0) ARCH= -gencode arch=compute_52,code=[sm_52,compute_52]

WillieMaddox commented 7 years ago

Any more thought on this?

prabindh commented 7 years ago

Have you tried to use the shared library in any extern C++ application ? Or, have you been able to build arapaho yet with this change ? Thanks,

prabindh commented 7 years ago

Just to be clear: The change is expected to help, when darknet is built with a C compiler, but needs to be integrated with a C++ application.