auto library link for visual studio using #pragma (Patch #2421)


Added by Kazuki Matsuda over 12 years ago. Updated over 11 years ago.


Status:Cancelled Start date:2012-10-09
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:build/install
Target version:3.0
Affected version:branch 'master' (2.4.9) Operating System:
Difficulty: HW Platform:
Pull request:https://github.com/Itseez/opencv/pull/39

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.

http://sourceforge.net/mailarchive/forum.php?thread_name=4EEAB2FB.1000403%40is.naist.jp&forum_name=opencvlibrary-devel


auto_library_linking.patch (15.8 kB) Kazuki Matsuda, 2012-10-09 05:27 pm


Associated revisions

Revision 409bd162
Added by Andrey Pavlenko about 11 years ago

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)

Also available in: Atom PDF