From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26425 invoked by alias); 17 Sep 2013 14:41:38 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 26408 invoked by uid 89); 17 Sep 2013 14:41:38 -0000 Received: from mailffm.next-motion.de (HELO mailffm.next-motion.de) (89.146.207.221) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 17 Sep 2013 14:41:38 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 X-HELO: mailffm.next-motion.de Received: by mailffm.next-motion.de (Postfix, from userid 65534) id 08C08A8204; Tue, 17 Sep 2013 16:41:32 +0200 (CEST) Received: from smtp.next-motion.de (unknown [109.73.24.114]) by mailffm.next-motion.de (Postfix) with ESMTPA id E6D94A8202; Tue, 17 Sep 2013 16:41:31 +0200 (CEST) Received: from localhost (intranator.net.lan [127.0.0.1]) by localhost (Postfix) with ESMTP id 416891C5; Tue, 17 Sep 2013 16:41:32 +0200 (CEST) Received: from [192.168.101.21] (software-mob01.net.lan [192.168.101.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: smtp-auth-user) by smtp.next-motion.de (Postfix) with ESMTPSA id 090AA17E; Tue, 17 Sep 2013 16:41:31 +0200 (CEST) Message-ID: <5238697B.4090205@cetoni.de> Date: Tue, 17 Sep 2013 14:41:00 -0000 From: cetoni GmbH - Uwe Kindler User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: ecos-discuss@sourceware.org, jabran.tlv@gmail.com Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: [ECOS] Re: Building C++ application for eCos on ARM X-SW-Source: 2013-09/txt/msg00007.txt.bz2 Hi, we also had an own library that uses stl and we managed to build it for eCos uSTL. We did the following 1. We created an stl compatibility layer: a folder that contains the stl include files for eCos: vector string map ... 2. Each of these include files contains the same content - it simply includes ustl_compat.h file #ifndef ustl_compat_vectorH #define ustl_compat_vectorH #include "ustl_compat.h" #endif 3. The ustl_compat.h file contains the following code: #ifndef ustl_compatH #define ustl_compatH #include #define std ustl #endif // ustl_compatH So it simply includes the ustl.h header file and defines the preprocessor macro std. So each occurence of std::vector will be replaced by ustl::vector This worked for us and we could compile the library. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss