How to link a static library struct to a user app ?
Using a struct object can be quite useful to combine several different data types into a single package. I have tried to do this utilizing a static library, but have run into problems. The main problem is to get the calling app to access the library struct. I have attached a small demo to illustrate the problem. Any help greatly appreciated. Thanks.
Last edited by Mike Pliam; January 15th, 2016 at 06:50 PM.
Re: How to link a static library struct to a user app ?
Originally Posted by Mike Pliam
Using a struct object can be quite useful to combine several different data types into a single package. I have tried to do this utilizing a static library, but have run into problems. The main problem is to get the calling app to access the library struct.
Mike, structure is just a data type declaration. Header thing. It just cannot have anything to do with static library, as library is able to contain definitions (function bodies or global variables) but not declarations. Static library has nothing common with java packages or c# assemblies. When programming in C/C++ you'd better think in C/C++ and use proper terminology. Then it would be easier to isolate irrelevant aspects, and therefore, focus on your real issues.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.