From: Laurence Withers Newsgroups: comp.os.msdos.djgpp Subject: Re: The DXE mechanism - has anybody used it effectively? Date: Thu, 24 Dec 1998 19:16:03 +0000 Organization: IP Message-ID: References: <8D53104ECD0CD211AF4000A0C9D60AE337C6ED AT probe-2 DOT Acclaim-Euro DOT net> NNTP-Posting-Host: lwithers.demon.co.uk X-NNTP-Posting-Host: lwithers.demon.co.uk:194.222.80.1 X-Trace: news.demon.co.uk 914527611 nnrp-05:5319 NO-IDENT lwithers.demon.co.uk:194.222.80.1 X-Complaints-To: abuse AT demon DOT net MIME-Version: 1.0 X-Newsreader: Turnpike (32) Version 4.00 Lines: 33 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com --- Original Message --- From: Shawn Hargreaves Time: Tue, 22 Dec 1998, 17:07:44 >> 3 - will I be able to call the DXE from C++ code (as opposed to C >> code)? Connected with this, will I be able to write the DXE in C++? > >I've no idea: try it and see! Making a wild guess, probably the code >will compile ok, but some things like global objects won't be >initialised properly. Well, I tried it, and this is what I get (from redir): gcc -c a-dxe.cpp -o a-dxe.o dxegen a-dxe.dxe _test a-dxe.o ld -X -S -r -o dxe__tmp.o -LC:/PROGRAMS/DJGPP/lib a-dxe.o -T dxe.ld Error: input file has more than one section; use -M for map Unfortunately, this doesn't mean anything to me :-( Note that a-dxe.cpp is simply: unsigned long test() { return 123456; } Anyway, unless there is a solution, I guess I'm stuck to C :-( Bye for now, -- Laurence Withers, mailto:lwithers AT lwithers DOT demon DOT co DOT uk Integrated Peripherals Operating System Project Leader || OPES Project Projects' homepage is at: http://www.lwithers.demon.co.uk/ Leader