From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15455 invoked by alias); 18 Mar 2014 23:30:31 -0000 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 Received: (qmail 15375 invoked by uid 89); 18 Mar 2014 23:30:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f180.google.com Received: from mail-wi0-f180.google.com (HELO mail-wi0-f180.google.com) (209.85.212.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 18 Mar 2014 23:30:23 +0000 Received: by mail-wi0-f180.google.com with SMTP id hn9so4390535wib.13 for ; Tue, 18 Mar 2014 16:30:20 -0700 (PDT) X-Received: by 10.180.101.166 with SMTP id fh6mr16232472wib.2.1395185420481; Tue, 18 Mar 2014 16:30:20 -0700 (PDT) Received: from [192.168.1.27] (0.Red-88-20-245.staticIP.rima-tde.net. [88.20.245.0]) by mx.google.com with ESMTPSA id n15sm38944389wij.3.2014.03.18.16.30.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Mar 2014 16:30:19 -0700 (PDT) Message-ID: <5328D70A.4010707@gmail.com> Date: Wed, 19 Mar 2014 07:24:00 -0000 From: =?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?= User-Agent: Thunderbird MIME-Version: 1.0 To: blade.vp2020@gmail.com CC: "Andy Falanga (afalanga)" , "gcc-help@gcc.gnu.org" Subject: Re: help me References: <60F6FAE47D1BCE4380CC06D18F49789B93F233F5@NTXBOIMBX02.micron.com> In-Reply-To: <60F6FAE47D1BCE4380CC06D18F49789B93F233F5@NTXBOIMBX02.micron.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00060.txt.bz2 Andy Falanga (afalanga) wrote: > Other than that, it's not clear if you're building for Windows or not. It looks like, if GCC wasn't compiled for Windows support, it may not know how to handle the __declspec() syntax. Look through the GCC docs for more info. > > Andy Additionally, you need to remove the static qualifier from both the prototype (so it doesn't search the library in the program instead of the dl) and in the library (defining as static prevents it to be exported), You will also have to provide a definition for MAP in your header (or at least a forward declaration),