From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30230 invoked by alias); 17 Apr 2002 10:37:39 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 30218 invoked from network); 17 Apr 2002 10:37:38 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by sources.redhat.com with SMTP; 17 Apr 2002 10:37:38 -0000 Received: from ns2.enator.se ([193.15.240.50] helo=xmail1.enator.se) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16xmoh-0007Mj-00 for ; Wed, 17 Apr 2002 06:37:36 -0400 Received: from x-mail1.enator.se (localhost [127.0.0.1]) by xmail1.enator.se (8.10.1/8.10.1) with ESMTP id g3HAbXw14753 for ; Wed, 17 Apr 2002 12:37:33 +0200 Received: from carna.enator.se (gk4dmz2-carna.enator.se [147.13.239.7]) by x-mail1.enator.se (8.10.1/8.10.1) with ESMTP id g3HAbXf14747 for ; Wed, 17 Apr 2002 12:37:33 +0200 Received: from ees2.enator.se (localhost [127.0.0.1]) by carna.enator.se (8.9.3/8.9.3) with ESMTP id MAA16330 for ; Wed, 17 Apr 2002 12:37:32 +0200 Received: by ees2 with Internet Mail Service (5.5.2650.21) id ; Wed, 17 Apr 2002 12:37:30 +0200 Message-ID: From: "Fredriksson, Johan" To: help-gcc@gnu.org Subject: building dll on Solaris with the use of gnu-cross-compiler! Date: Wed, 17 Apr 2002 03:48:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2002-04/txt/msg00179.txt.bz2 I'm trying to build a dll on the solaris platform with use of gcc-cross-compiler and cygwin. The problem is that if I use WINAPI when I create my dll-entry-point, as I should according to cygwin, the compiler or linker is not able to interpret windows.h. In the second atemt I created i an Entry-point without using WINAPI...just a function returning int. But when I use that I can't reach any of the functions inside my dll. My questions are: 1.Am I not able to use gcc-cross-compiler and cygwin to build a dll on the solaris platform? 2. Why am I forced to use WINAPI when I create my Entry-point? All the examples I've seen use that? Regards Johan Fredriksson Sweden