Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > openwatcom.users.c_cpp > #3513
| From | Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> |
|---|---|
| Newsgroups | openwatcom.users.c_cpp |
| Subject | Re: Creating Dos/4gw Dynamic Link Libraries? |
| Date | 2018-01-02 07:16 +0800 |
| Organization | OpenWatcom |
| Message-ID | <p2eiv3$7ib$1@www.openwatcom.org> (permalink) |
| References | <p2den3$v58$1@www.openwatcom.org> <p2e8dq$51c$1@www.openwatcom.org> |
Frank Beythien wrote: > Am 01.01.2018 um 13:57 schrieb Johann 'Myrkraverk' Oskarsson: >> Dear Open Watcom, >> >> How do you create dynamic link libraries for Dos/4gw? So far > > I don't find DOS/4G DLLs mentioned in the docs, but I don't program > Dos any more. See the Linker Guide, The OS/2 Executable and DLL File Formats, of all places. I have found no explicit examples though. And the message I included in my original post shows that Open Watcom (thinks it) knows how to make Dos/4G DLLs. > It would help if you posted a minimal (compiling!) example with the > complete wcc386 and wlink cmdlines output to see which version you are > using. What do you mean? The makefile I listed shows the explicit wlink command. I am using Open Watcom 1.9 (in DOSBox for this exercise). I was missing the -bd option when compiling foo.c, this edited makefile (below) shows a new error, Error! E2028: __DLLstart_ is an undefined reference. Error! E2028: main_ is an undefined reference. It ends with: file clib3r.lib(cmain386.c): undefined symbol main_ and does not list explicitly what links to __DLLstart_. Do I need both __DLLstart() and main()? How do I link in __DLLstart()? Or do I need to define it myself? Again, won't main() in the DLL conflict with my application's main()? ## file: Makefile foo.dll: foo.obj wlink system 386 dll option map name foo file foo foo.obj: foo.c wcc386 -bd -6r foo.c ## end: Makefile -- 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 — Previous in thread | 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