Mail Archives: djgpp/1998/02/25/02:30:43
This is a multi-part message in MIME format.
--------------E8EDF924977BE8DDA9F7E9D0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Eli Zaretskii wrote:
> On Mon, 23 Feb 1998, Jason Dagit wrote:
>
> > Both "systems" use GCC and G++ right? Well, I have a C++ file that is
> > ANSI compatible AFAIK which compiles beautifully with DJGPP. I try to
> > compile it with Cygnus stuff and it gives tons of warnings, but in the
> > end it compiles and gives me the results I expected.
>
> First, this is a wrong forum to ask questions about the Cygnus ports
> (since your problems is not with DJGPP). AFAIK, there is a mailing
> list where Cygnus-related issues are discussed (sorry, no URL).
>
Ok, I asked the question in this group because both use GCC, I thought it
applied. Considering that I was asking about the differences in DJGPP and
Cygnus-Win32. Also, some nice people here use Cygnus compiler, I though one
of them might give some personal experience they have had between the two.
> You could have some feedback if you at least would post some of the
> warnings and the command line you used to compile, and maybe some of
> the source that triggered the warnings. Since you haven't done even
> that, I'm clueless, and I doubt that anybody else will be psychic
> enough to guess the nature of your problem(s).
>
Ok, I was afraid to post a really long message, but I will post both source
and stdout this time.
> > PS Can someone tell me how to "pipe" the output from GCC to a file? (I
> > mean the error/warning messages)
>
> This is explained in the DJGPP FAQ list, section 6.10.
I don't know how you people can find anything in the FAQ, I mean with the
section number I was able to find it, but I have looked for it in the FAQ
about 3 times and I never found it before. Guess I'm just dumb.
Ok, I have included the files you wanted to see:
--------------E8EDF924977BE8DDA9F7E9D0
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
IG51bV9yb3dzOw0KICAgaW50IG51bV9jb2xzOw0KICAgDQogICANCiAgIC8vZmx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W5kbDsNCiAgIG1hdHJpeCBteU1hdDsNCiAg
IG15TWF0ID0gbWF0MSAqIG1hdDI7DQoNCg0KICAgY291dCA8PCBlbmRsIDw8IGVuZGwgPDwg
Ik1hdHJpeCAxOiAiOw0KICAgbWF0MS5wcmludE1hdCgpOw0KICAgY291dCA8PCBlbmRsIDw8
IGVuZGwgPDwgIk1hdHJpeCAyOiAiOw0KICAgbWF0Mi5wcmludE1hdCgpOw0KICAgY291dCA8
PCBlbmRsIDw8IGVuZGwgPDwgIlRoZSBtdWx0aXBsaWNhdGlvbiByZXN1bHQgaXM6ICI7DQog
ICBteU1hdC5wcmludE1hdCgpOw0KICAgDQogICBteU1hdCA9IG1hdDEgKyBtYXQyOw0KICAg
Y291dCA8PCBlbmRsIDw8IGVuZGwgPDwgIlRoZSBhZGRpdGlvbiByZXN1bHQgaXM6ICI7DQog
ICBteU1hdC5wcmludE1hdCgpOw0KICAgcmV0dXJuIDA7DQp9DQo=
--------------E8EDF924977BE8DDA9F7E9D0
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
dWUgYG1hdHJpeCc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