Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > openwatcom.users.c_cpp > #3511
| Path | csiph.com!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!www.openwatcom.org!not-for-mail |
|---|---|
| From | Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> |
| Newsgroups | openwatcom.users.c_cpp |
| Subject | Creating Dos/4gw Dynamic Link Libraries? |
| Date | Mon, 1 Jan 2018 20:57:38 +0800 |
| Organization | OpenWatcom |
| Lines | 50 |
| Message-ID | <p2den3$v58$1@www.openwatcom.org> (permalink) |
| NNTP-Posting-Host | 112.201.71.224 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | www.openwatcom.org 1514815011 31912 112.201.71.224 (1 Jan 2018 13:56:51 GMT) |
| X-Complaints-To | news@www.openwatcom.org |
| NNTP-Posting-Date | Mon, 1 Jan 2018 13:56:51 +0000 (UTC) |
| X-Mozilla-News-Host | news://news.openwatcom.org |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 |
| Xref | csiph.com openwatcom.users.c_cpp:3511 |
Show key headers only | View raw
Dear Open Watcom,
How do you create dynamic link libraries for Dos/4gw? So far
I have this source code.
// file: foo.h
char * __export foo( void );
// end: foo.h
// file: foo.c
#include "foo.h"
char * __export foo( void ) {
return "bar";
}
// end: foo.c
and this make file.
## file: Makefile
foo.dll: foo.obj
wlink system 386 dll option map name foo file foo
foo.obj: foo.c
wcc386 -bt=386_dll -6r foo.c
## end: Makefile
Wlink tells me it's
creating DOS/4G dynamic link library
so I know I have most of the steps correct. However,
file foo.obj: undefined symbol __CHK
(slightly edited)
How do I get rid of that undefined symbol? If I link with
the C library, clib3r, it finds __CHK but complains about
a missing main_. Do I need a main() in a DLL? Will that
not conflict with the application's main()?
--
Johann | email: invalid -> com | www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | twitter: @myrkraverk
Back to openwatcom.users.c_cpp | Previous | Next — Next in thread | Find similar
Creating Dos/4gw Dynamic Link Libraries? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2018-01-01 20:57 +0800
Re: Creating Dos/4gw Dynamic Link Libraries? Frank Beythien <fbeythien@gmx.de> - 2018-01-01 21:16 +0100
Re: Creating Dos/4gw Dynamic Link Libraries? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2018-01-02 07:16 +0800
Re: Creating Dos/4gw Dynamic Link Libraries? Frank Beythien <fbeythien@gmx.de> - 2018-01-02 13:47 +0100
Re: Creating Dos/4gw Dynamic Link Libraries? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2018-01-03 17:01 +0800
Re: Creating Dos/4gw Dynamic Link Libraries? Paul S. Person <psperson@ix.netscom.com.invalid> - 2018-01-02 09:53 -0800
csiph-web