On 24 Jan 2003 at 16:30, Adriaan van Os wrote:
Maybe, some of you have any experience cross-compiling for Wintel.
Suppose, I build a cross-compiler (running on Mac OS X) that compiles Windows code for i386.
(1) Do I need a cross-linker too ? How does the linker know about Win32 DLLs and LIBs to link with ? (2) Do produced executables run as native Windows GUI programs or DLLs (without a UNIX compatible shell installed)
If you use the Mingw libraries and runtime (www.mingw.org), then you will get native Win32 programs. So you should get the Mingw 2.0.x environment. Unfortunately, it is distributed as a Win32 self extracting executable. I don't know if you can run that under Mac OS X.
? (3) Same question for DOS programs.
For real DOS you are looking for DJGPP libraries, not Mingw. Of course, native Win32 has a "console" mode, which looks similar to a DOS program.
(4) Are there any GPC Pascal interfaces to the Win32 API ?
Yes. Check on the GPC website (in /contrib/chief/) for the winapi files. These are being updated all the time - and the ones on the GPC site are a few months old (and I have fixed many things since then).
(5) What about cross-debugging with two machines ?
Dunno.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/