From: Waldemar Schultz Newsgroups: comp.os.msdos.djgpp Subject: Re: MINGW vs DJGPP Date: Thu, 19 Apr 2001 12:53:38 +0200 Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany) Lines: 28 Message-ID: <3ADEC3B2.FBB08A93@ma.tum.de> References: <3ADEC26E DOT 22249 DOT 5630F AT localhost> NNTP-Posting-Host: pcritter14.mathematik.tu-muenchen.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: wsc10.lrz-muenchen.de 987677598 8028 131.159.68.151 (19 Apr 2001 10:53:18 GMT) X-Complaints-To: news AT lrz-muenchen DOT de NNTP-Posting-Date: 19 Apr 2001 10:53:18 GMT X-Mailer: Mozilla 4.75 [de] (Win98; U) X-Accept-Language: de,en-US To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com pavenis AT lanet DOT lv schrieb: > > What happens if you declare and define the structure as extern "C"? > > Does that work? > > > > No. It doesn't work for C++. So best I can currently suggest is to avoid > using broken -fpack-struct and use pair of #pragma pack(1) and > #pragma pack() where needed. This is better as You can pack only > those structures You really need. > > Andris What is the 'default' for #pragma pack() for the different compilers please ? BTW my original problem went away by using #pragma pack(4) in MINGW, which seems to be the default with DJGPP. May be it works by accident only, but it's good enough for me. So after all my first MINGW/GRX application is running. The only(?) thing I couldn't find out is how to printf() text to the console window or producing a beep while being in GRXMain(). -- Gruss Waldemar Schultz. Technische Universität München, Zentrum Mathematik M1, D 80290 München Tel: +49 (0)89 2892 8226 FAX: +49 (0)89 2892 8228