ofCLEye and Codeblocks

I can’t seem to link the CLEyeMulticam.lib in openframeworks. I’m probably being an idiot but would be glad of any help.

I’ve added the file “CLEyeMulticam.h” and it’s directory to the compiler search directories.

I’ve added “CLEyeMulticam.lib” to the link libraries.

And yet I get a load of

undefined reference to `CLEyeGetCameraCount()’ etc etc errors.

I did have to comment out this line from the header file:

#define type extern “C” __declspec(dllimport)## type __cdecl

What am I missing ? ??? ??? ???

Long story short:

Change:

#define IMPORT(type) extern “C” __declspec(dllimport)## type __cdecl

to

#define IMPORT(type) extern “C” type __cdecl

in CLEyeMulticam.h

:wink: