Replies: 2 comments 3 replies
-
Thanks for the note, is the ask to have one library to link against for building native C++ modules? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Please take a look at the following. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Like JNI of Java. You do not need the Java source code. The only thing you will need is the standalone headers on the
include
directory of your JRE and of course the JRE itself. You can even embed jvm.dll into your application. You can do all of that without Java source code.From the header
lib_api.h
of Objeck, it includedcommon.h
andcommon.h
including a bunch of other headers including external libraries like OpenSSL. And the fact is there is noObjeck.dll
butcommon.cpp
together withcommon.h
this indicated that you will need the Objeck source code to do the same thing you could do with JNI but without Java source code.I know Objeck is open source and Java has been designed this way could be because it used to be closed source. But the way Java doing it is worth to learn from. The whole Objeck source I cloned from this repo is large. Instead if I could just include the headers shipped as part of an Objeck binary distribution like Java and link with
Objeck.dll
thing will be much simple and elegant (and easier too).Beta Was this translation helpful? Give feedback.
All reactions