Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About to link InitialisationParams::Create()
04-02-2015, 09:48 AM (This post was last modified: 04-02-2015 09:53 AM by okgwf.)
Post: #3
RE: About to link InitialisationParams::Create()
(04-02-2015 09:05 AM)simonc Wrote:  
(04-02-2015 02:59 AM)okgwf Wrote:  All other functions can be linked,but the function InitialisationParams::Create() is undefined.

ohNet defaults to classes being hidden (private to ohNet). Using a shared library in a C++ app hasn't been very common; it sounds as if things have rotted slightly and InitialisationParams needs to have its visibility changed.

To fix your build can you either mark InitialisationParams as DllExportClass (see other examples in OhNet.h) and rebuild ohNet or change to linking it into your app's binary (link libohNetCore.a rather than

If you continue using ohNet as a shared library, please let us know about any other classes that also need to be visible to callers.

Thank you very much!
I tried to custom a static method named "MyCreate()" with the same function in this class,but it still have the same problem.
it looks as if the static method of the classes is not visiable to the caller.

You are right, It is not necessary to use ohNet as a shared library in a small c++ App.I've changed to use OhNet as a static library. Now,It is working well.
Find all posts by this user

Messages In This Thread
RE: About to link InitialisationParams::Create() - okgwf - 04-02-2015 09:48 AM

Forum Jump: