Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sharing c++ class



On Nov 29, 2003, at 4:51 PM, Alexander Cohen wrote:

What would be the best way to share a C++ class wich i have written without actually sharing the source code (open source). I know i could wrap the whole thing up into a regular c style library but i would rather the user be able to have access to the actual C++ class. Is this at all possible? All my attemps have failed up to now!


It's possible, but don't even THINK about doing it until you completely understand 1) the library's architecture, and 2) the "fragile base class" problem.

On the other hand, a C-style library is something you already understand, and would be robust enough that your users won't necessarily need to recompile every time you ship a new version.

</soapbox> ;-)

hth,
Jim H
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >sharing c++ class (From: Alexander Cohen <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.