Giter VIP home page Giter VIP logo

Comments (13)

JXLee33 avatar JXLee33 commented on July 17, 2024

I have the same problem. You can try to add extern int ccdGJKIntersect(const void *obj1, const void *obj2, const ccd_t *ccd) before main() function. And if you find red line under CCD_INIT,you can try this https://github.com/danfis/libccd/pull/40/files

from libccd.

vekkuli avatar vekkuli commented on July 17, 2024

I had similar linking issues. I had set the library to be built static in cmake but it seemed like the CCD_EXPORT definition wasn't right. Is the CCD_STATIC_DEFINE defined properly? Anyway, I was able to resolve the issue by overriding the ccd_export.h with

#ifndef CCD_EXPORT_H
#define CCD_EXPORT_H

#define CCD_EXPORT

#endif

from libccd.

Mikez2015 avatar Mikez2015 commented on July 17, 2024

Have same problem - fatal error LNK1120.
I tried to do as advised vekkuli, but it did not help.

from libccd.

Mikez2015 avatar Mikez2015 commented on July 17, 2024

I have the same problem. You can try to add extern int ccdGJKIntersect(const void *obj1, const void *obj2, const ccd_t *ccd) before main() function.

warning C4273: ccdGJKIntersect:

from libccd.

JXLee33 avatar JXLee33 commented on July 17, 2024

from libccd.

Mikez2015 avatar Mikez2015 commented on July 17, 2024

Warning means you can run it but you still have some potential problem. In most situation, it is just a useless hint. It depends on your compiler.

But I still get the error LNK1120.
I tried different tips, but nothing helps.

from libccd.

JXLee33 avatar JXLee33 commented on July 17, 2024

from libccd.

Mikez2015 avatar Mikez2015 commented on July 17, 2024

Please tell me your compiler, if you use visual stdio2015, maybe I could give you my test program.

Latest VS 2019, x64

from libccd.

JXLee33 avatar JXLee33 commented on July 17, 2024

from libccd.

Mikez2015 avatar Mikez2015 commented on July 17, 2024

This is a test program for cube, open libccdtest.sln, maybe it works.

Where? I do not see the link.

from libccd.

JXLee33 avatar JXLee33 commented on July 17, 2024

from libccd.

Mikez2015 avatar Mikez2015 commented on July 17, 2024

At first, I used the link as I said in the comment.But then I found that it is more convenient to put some files directly into the project.I couldn't find the original version.Sorry.😐

---Original--- From: "Mikez2015"<[email protected]> Date: Tue, Feb 18, 2020 19:17 PM To: "danfis/libccd"<[email protected]>; Cc: "Comment"<[email protected]>;"JXLee33"<[email protected]>; Subject: Re: [danfis/libccd] Problem with the linking (#33) This is a test program for cube, open libccdtest.sln, maybe it works. Where? I do not see the link. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

No problems, thx.

I found sulution:
Add "#define CCD_STATIC_DEFINE" to "config.h" and copy to includes.
It's work for me.

from libccd.

SpaceIm avatar SpaceIm commented on July 17, 2024

I've solved linkage errors with msvc like this.
If static, CCD_STATIC_DEFINE has to be defined:

  • At libccd compilation time (otherwise it leads to a lot of C4273 warnings "inconsistent dll linkage", and after that it may fail to link into an executable or shared lib).
  • When consuming static libccd.

CMakeLists.txt of libccd could be easily fixed by defining CCD_STATIC_DEFINE not only when CCD_HIDE_ALL_SYMBOLS is ON, but also when BUILD_SHARED_LIBS is OFF.

from libccd.

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.