Giter Club home page Giter Club logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
I got the same error in visual studio 2010. The problem is that visual studio 
does not create a lib file unless functions are explicitly defined as dllexport 
functions.
To fix this add the following to cvblob.h:

#define EXPORT __declspec (dllexport)

In the extern "C" block, add the word EXPORT to each function.
For example: 
EXPORT double cvContourPolygonArea(CvContourPolygon const *p);

As soon as you add at least one EXPORT keyword the .lib file will be created. 
You should add EXPORT to all the functions in the extern "C" block though, 
otherwise you will get linkage errors for the functions you didn't add EXPORT 
for.

This fix was based on the following MSDN post: 
http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/15e4fc47-68b5-479
8-9e5d-d6d72da1f631/

Original comment by [email protected] on 6 Nov 2012 at 3:53

from cvblob.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
thanks

Original comment by [email protected] on 16 Nov 2012 at 1:39

from cvblob.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
thanks. now it builds successfully

Original comment by [email protected] on 22 Mar 2013 at 4:56

from cvblob.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.