Mail Archives: djgpp/1998/12/24/15:45:21
--- Original Message ---
From: Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk>
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
- Raw text -