public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin DLLs support COM & OLE?
@ 2003-04-25 23:57 Lester Ingber
  0 siblings, 0 replies; only message in thread
From: Lester Ingber @ 2003-04-25 23:57 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-25 22:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-25 23:57 Cygwin DLLs support COM & OLE? Lester Ingber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).