auto library link for visual studio using #pragma (Patch #2421)
Description
In Visual Studio, there are
#pragma comment(lib, "XXX")
syntax to specify a library file for Linker.
When you write a #pragma in your c/c++ source code or header file,
the linkage-editor recognize it and links the library file.
I hope that OpenCV use its usefull syntax.
For example, Boost C++ library is using its technique, and
user who use the library in visual studio
can use the library without specifying library files manually.
There are no linker errors, no side effect (if library search path is specified correctly).
It's like a .pc files of pkg-config in Unix/Linux environment.
Associated revisions
Merge pull request #2421 from akarsakov:fix_ocl_haar_intel
History
Updated by Andrey Kamaev over 12 years ago
- Assignee deleted (
Andrey Kamaev)
Updated by Andrey Kamaev over 12 years ago
- Target version changed from 2.4.3 to 3.0
Updated by Sebastian Krämer over 12 years ago
Having this feature would be neat!
Updated by Stefan R over 12 years ago
+1
Updated by Kirill Kornyakov over 12 years ago
IIRC this feature was discussed here: https://github.com/Itseez/opencv/pull/39
Updated by Vladislav Vinogradov over 11 years ago
- Status changed from Open to Cancelled
Updated by Vladislav Vinogradov over 11 years ago
Please see discussion on https://github.com/Itseez/opencv/pull/39
We decided not to use this patch.
- Pull request set to https://github.com/Itseez/opencv/pull/39
- Affected version set to branch 'master' (2.4.9)