From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16959 invoked by alias); 25 Apr 2003 22:34:36 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 16939 invoked from network); 25 Apr 2003 22:34:34 -0000 Received: from unknown (HELO ingber.com) (130.94.234.156) by sources.redhat.com with SMTP; 25 Apr 2003 22:34:34 -0000 Received: (qmail 93117 invoked by uid 27292); 25 Apr 2003 22:34:30 -0000 Date: Fri, 25 Apr 2003 23:57:00 -0000 From: Lester Ingber To: cygwin@cygwin.com Subject: Cygwin DLLs support COM & OLE? Message-ID: <20030425183430.A93067@ingber.com> Reply-To: Lester Ingber Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-URL-ALT: http://www.alumni.caltech.edu/~ingber/ X-SW-Source: 2003-04/txt/msg02274.txt.bz2 I'm able to compile DLLs using set module = mydll gcc -mrtd -c ${module}.c set old_lib = ${module}.o set dependency_libs = '-lm' gcc -mrtd -shared -mno-cygwin -o ${module}.dll \ -Wl,--out-implib=lib${module}.a \ -Wl,--export-all-symbols \ -Wl,--export-dynamic \ -Wl,--add-stdcall-alias \ -Wl,--enable-auto-import \ -Wl,--output-def=${module}.def \ -Wl,--whole-archive ${old_lib} \ -Wl,--no-whole-archive ${dependency_libs} gcc -mrtd -mno-cygwin -O -o run_main main.c -L./ -l${module} ${dependency_libs} ./run_main In answering my query to using such DLLs on TradeStation 7 (TS7, their new product), one of their developers replied: There are two issues that must be resolved before you can use the new COM based SDK. (1) You must be able to create a Windows compatible "stdcall" DLL, and ( 2 ) your compiler must be able to support certain COM protocols, specifically OLE automation. The legacy SDK documented in the EasyLanguage Reference Guide ( downloadable ) may be more suitable if your compiler does not support COM. I believe that the -mrtd option takes care of point (1) above. Wrt to point (2), is anyone familiar with these particular TS7 COM and OLE issues, and should my script above for constructing DLLs be sufficient for "vanilla C" code (runs across many platforms which I've tested)? Thanks. Lester -- Prof. Lester Ingber ingber@ingber.com ingber@alumni.caltech.edu www.ingber.com www.alumni.caltech.edu/~ingber -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/