Hi,
First off, a quick thanks to Brian for answering my earlier question of an
hour-or-so-ago re
'MSYS Shell and external libraries' - his solution works nicely (of course
:-)
I'm trying to build audiere-1.9.3 from source and I get this error when
running 'make':
device.cpp:43: error: function `const char*
audiere::AdrGetSupportedAudioDevices()' definition is marked dllimport.
The function definition is:
ADR_EXPORT(const char*) AdrGetSupportedAudioDevices()
Running through the #define statements in various header files it looks like
ADR_EXPORT (ret) is being defined as:
extern "C" __declspec(dllimport) ret __stdcall
Anyway .... this '__declspec(dllimport)' and '__declspec(dllexport)' stuff
confuses me. Does anyone have some advice on what this error means and how
one should deal with it ? A link to a good, basic, treatment/explanation of
those terms would be helpful - as I'm sure it's gunna take a while to sink
in. I did find
http://sourceware.org/binutils/docs-2.16/ld/WIN32.html#index-direct-linking-to-a-dll-527
which mentions these terms and their relevance to object files ... but
device.cpp is not an object file and I can't quite make the connection ...
Cheers,
Rob
|