From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2953 invoked by alias); 2 Jan 2008 03:03:42 -0000 Received: (qmail 2944 invoked by uid 22791); 2 Jan 2008 03:03:41 -0000 X-Spam-Check-By: sourceware.org Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.177) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 02 Jan 2008 03:03:18 +0000 Received: by wa-out-1112.google.com with SMTP id m16so7928771waf.20 for ; Tue, 01 Jan 2008 19:03:16 -0800 (PST) Received: by 10.115.15.1 with SMTP id s1mr10850926wai.0.1199242996494; Tue, 01 Jan 2008 19:03:16 -0800 (PST) Received: by 10.114.73.5 with HTTP; Tue, 1 Jan 2008 19:03:16 -0800 (PST) Message-ID: <3fdd6ce00801011903x1b1b63egcd479de40c0c5e08@mail.gmail.com> Date: Wed, 02 Jan 2008 03:03:00 -0000 From: "Bruno Moreira Guedes" To: gcc-help@gcc.gnu.org Subject: Dynamic Libraryes, C++ and Objective-C MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-01/txt/msg00011.txt.bz2 Hello People, I'm highly interested in developing a "very-pluggable API", to offer a "Java API-like"(just LIKE hehehe) for C++. So, I asked myself "how could I dynamic load classes?". During my research about how to construct that, I break into that step, and it's getting too hard to pass... After a little research, I heard about a 'ugly' method which consists of creating a virtual/pure-virtual and class using a helper function to make the new/delete operations. But I want to "split" the API into a base library, statically linked with the base libraries, and the "pluggable parts", where each part consists of a set of many classes. So, creating a virtual class for each class don't make sense... Researching anymor I heard about a Objective-C ability of creating and modifying classes during the runtime. But I don't know Objective-C very-well and I don't know how to 'mix' it with C++ code... As an alternative, if someone could help-me about using GCC to mix that, I'm grateful... But returning to the main problem, I want to use the headers which I have of the API parts, of course... And the I get the idea of letting the symbols to be resolved during the library loading stage, and not during the compile time... There's anyway to don't resolve the symbols during the compile-time???