delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/02/25/23:32:58

From: thedagit AT mail DOT coos DOT or DOT us (Jason Dagit)
Subject: Differences between DJGPP-GCC and Cygnus-Win32-GCC
25 Feb 1998 23:32:58 -0800 :
Message-ID: <34F38D2F.FCAD0DB0.cygnus.gnu-win32@mail.coos.or.us>
Reply-To: thedagit AT mail DOT coos DOT or DOT us
Mime-Version: 1.0
To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>

This is a multi-part message in MIME format.
--------------E14BD9BACBA36294C32B2DDB
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I have DJGPP and Cygnus on my system, installed correctly AFAIK.  They
both work.  But, I have a C++ file that I made, that works just fine
with DJGPP but when I compile with Cygnus it gives all kinds of error
messages about non-const refrences.  I have inlcuded the error log.   I
have included the source code too.  The odd thing (to me) is that they
both compile and give the same results, even though one gives tons of
warning messages.

Can anyone tell me if there are any major differences in the two
versions of GCC?  The command lines I used where:
DJGPP:
redir -o mat.log  -eo gxx.exe mat.cc -o mat.exe -Wall
Cygnus:
redir -o mat.log  -eo g__~1.exe mat.cc -o mat.exe -Wall

The reason g++ has a messed up name is because redir can't read ++ in a
file name.

Jason
PS I can run gcc -v and it reads the specs just fine.

--------------E14BD9BACBA36294C32B2DDB
Content-Type: application/x-unknown-content-type-log_auto_file; name="MAT.LOG"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="MAT.LOG"

bWF0LmNjOiBJbiBtZXRob2QgYGNsYXNzIG1hdHJpeCBtYXRyaXg6Om9wZXJhdG9yICooY2xh
c3MgbWF0cml4ICYpJzoNCm1hdC5jYzo3Nzogd2FybmluZzogaW5pdGlhbGl6YXRpb24gb2Yg
bm9uLWNvbnN0IHJlZmVyZW5jZSBgY2xhc3MgbWF0cml4ICYnIGZyb20gcnZhbHVlIGBtYXRy
aXgnDQptYXQuY2M6MjQ6IHdhcm5pbmc6IGluIHBhc3NpbmcgYXJndW1lbnQgMSBvZiBgbWF0
cml4OjptYXRyaXgobWF0cml4ICYpJw0KbWF0LmNjOjkwOiB3YXJuaW5nOiBpbml0aWFsaXph
dGlvbiBvZiBub24tY29uc3QgcmVmZXJlbmNlIGBjbGFzcyBtYXRyaXggJicgZnJvbSBydmFs
dWUgYG1hdHJpeCcNCm1hdC5jYzoyNDogd2FybmluZzogaW4gcGFzc2luZyBhcmd1bWVudCAx
IG9mIGBtYXRyaXg6Om1hdHJpeChtYXRyaXggJiknDQptYXQuY2M6IEluIG1ldGhvZCBgY2xh
c3MgbWF0cml4IG1hdHJpeDo6b3BlcmF0b3IgKyhjbGFzcyBtYXRyaXggJiknOg0KbWF0LmNj
Ojk5OiB3YXJuaW5nOiBpbml0aWFsaXphdGlvbiBvZiBub24tY29uc3QgcmVmZXJlbmNlIGBj
bGFzcyBtYXRyaXggJicgZnJvbSBydmFsdWUgYG1hdHJpeCcNCm1hdC5jYzoyNDogd2Fybmlu
ZzogaW4gcGFzc2luZyBhcmd1bWVudCAxIG9mIGBtYXRyaXg6Om1hdHJpeChtYXRyaXggJikn
DQptYXQuY2M6MTA5OiB3YXJuaW5nOiBpbml0aWFsaXphdGlvbiBvZiBub24tY29uc3QgcmVm
ZXJlbmNlIGBjbGFzcyBtYXRyaXggJicgZnJvbSBydmFsdWUgYG1hdHJpeCcNCm1hdC5jYzoy
NDogd2FybmluZzogaW4gcGFzc2luZyBhcmd1bWVudCAxIG9mIGBtYXRyaXg6Om1hdHJpeCht
YXRyaXggJiknDQo=
--------------E14BD9BACBA36294C32B2DDB
Content-Type: application/x-unknown-content-type-cc_auto_file; name="mat.cc"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="mat.cc"

I2luY2x1ZGUgPHN0ZGxpYi5oPg0KI2luY2x1ZGUgPGlvc3RyZWFtLmg+DQoNCmludCBjbHJz
Y3Iodm9pZCk7DQppbnQga2JoaXQodm9pZCk7DQoNCmNsYXNzIG1hdHJpeA0Kew0KICAgaW50
IG51bV9yb3dzO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iLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLSIgPDwgZW5kbDsNCiAgIG1hdHJpeCBteU1hdDsNCiAg
IG15TWF0ID0gbWF0MSAqIG1hdDI7DQoNCg0KICAgY291dCA8PCBlbmRsIDw8IGVuZGwgPDwg
Ik1hdHJpeCAxOiAiOw0KICAgbWF0MS5wcmludE1hdCgpOw0KICAgY291dCA8PCBlbmRsIDw8
IGVuZGwgPDwgIk1hdHJpeCAyOiAiOw0KICAgbWF0Mi5wcmludE1hdCgpOw0KICAgY291dCA8
PCBlbmRsIDw8IGVuZGwgPDwgIlRoZSBtdWx0aXBsaWNhdGlvbiByZXN1bHQgaXM6ICI7DQog
ICBteU1hdC5wcmludE1hdCgpOw0KICAgDQogICBteU1hdCA9IG1hdDEgKyBtYXQyOw0KICAg
Y291dCA8PCBlbmRsIDw8IGVuZGwgPDwgIlRoZSBhZGRpdGlvbiByZXN1bHQgaXM6ICI7DQog
ICBteU1hdC5wcmludE1hdCgpOw0KICAgcmV0dXJuIDA7DQp9DQo=
--------------E14BD9BACBA36294C32B2DDB--

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019