Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > openwatcom.users.c_cpp > #3511
| From | Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> |
|---|---|
| Newsgroups | openwatcom.users.c_cpp |
| Subject | Creating Dos/4gw Dynamic Link Libraries? |
| Date | 2018-01-01 20:57 +0800 |
| Organization | OpenWatcom |
| Message-ID | <p2den3$v58$1@www.openwatcom.org> (permalink) |
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