Message-ID: <3AA9DF5F.9231C8D@home.com> From: Tom Fjellstrom X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.4.2 i686) MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: creating a shared object in Win98 References: <3AA9123F DOT 452E0FEF AT ieee DOT org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 33 Date: Sat, 10 Mar 2001 08:01:12 GMT NNTP-Posting-Host: 24.70.88.73 X-Complaints-To: abuse AT home DOT net X-Trace: news1.rdc1.ab.home.com 984211272 24.70.88.73 (Sat, 10 Mar 2001 00:01:12 PST) NNTP-Posting-Date: Sat, 10 Mar 2001 00:01:12 PST Organization: Excite AT Home - The Leader in Broadband http://home.com/faster To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Tony Gahlinger wrote: > > I'm in the unenviable position of having to port some C code > from Linux to a Win98 environment. The code is a loadable > package that can be linked dynamically into a Tcl application > (the code acts as a communication link between Tcl and an Erlang > application). > > In Linux, I created a shared object with position-indepedent code: > > gcc -shared mycode.c -L/my_lib_path -I/my_include_path > -lmy_libs -o mycode.so -fpic > > Can djgpp handle this (and if so, any hints/pointers from a kind > soul?) or am I consigned to install and suffer an approx. 1Gbyte > of MS Visual C++ and the MSDN? Please tell me the latter ain't so! > > Help would be much appreciated. --Tony djgpp can sort of do it with dxe or some of the 'lodable object' libraries out there.... But I would suggest getting Mingw32. It can do dlls and regular console aplications along with win32 gui programs. By the way, what is an Erlang application? If it isn't a windows program or compilable with mingw32 then you might have some problems. -- "Computer programmers don't byte, they nybble a bit." Tom Fjellstrom tfjellstrom AT home DOT com http://strangesoft.net/