Comments (13)
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.
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.
Have same problem - fatal error LNK1120.
I tried to do as advised vekkuli, but it did not help.
from libccd.
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.
from libccd.
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.
from libccd.
Please tell me your compiler, if you use visual stdio2015, maybe I could give you my test program.
Latest VS 2019, x64
from libccd.
from libccd.
This is a test program for cube, open libccdtest.sln, maybe it works.
Where? I do not see the link.
from libccd.
from libccd.
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.
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)
- nextSupport function does not compute the right answer HOT 4
- Edge/Vertex order in ccd_pt_face_t HOT 1
- ccd_pt_vertex_t.edges is incorrectly assigned HOT 1
- Installation Crashing from executing make HOT 7
- findPenetr() can divide by zero.
- ccdVec3PointTriDist2() divides by zero. HOT 3
- Example from the 'GJK - Intersection Test' section fails HOT 1
- 'pkg-config --libs' shouldn't return -lm
- Enable compilation for ICC
- ccdVec3PointTriDist2 computes different distance with / without witness points. HOT 3
- M_PI not defined on test_gjk_libccd-inl_epa.cpp
- Warning C4273"inconsistent dll linkage" when build Static Library
- Fatal error: LNK1120 unresolved externals when libccd maked as static library HOT 1
- Examples in README are difficult to read and don't define all symbols they use HOT 3
- ccdGJKPenetration: Access violation reading location 0x0000000000000000. occurred HOT 7
- MPR - Penetration depth with any vector, not with MDT-vector - it's possible?
- ccdMPRPenetration() bug, wrong dir penetration depth HOT 36
- use CMAKE_INSTALL_DOCDIR insted of ${CMAKE_INSTALL_DATAROOTDIR}/doc/ccd
- Question: EPA Position Computation
- autotools install does not install header files.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libccd.