Weird problem with C compiler under SCO - I can't believe it!

John F. Haugh II jfh at rpp386.Dallas.TX.US
Mon Sep 18 00:26:06 AEST 1989


In article <11101 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn) writes:
>In article <71 at promark.UUCP> mark at promark.UUCP (Mark J. DeFilippis) writes:
>>Any constructive comments?  Has this been seen before?
>
>Yeah.  Some MS/DOS C compilers think "cdecl" is a C keyword,
>meaning "use C linkage for this function even though a global
>compile switch says to use Pascal linkage".  It's a crock.
>
>If you're lucky, you can do what on UNIX would be expressed as
>"cc -Dcdecl=Xcdecl" to work around the problem without having
>to do a lot of editing.

This option can be turned off by editing /etc/default/cc and
removing the 'e' from the FLAGS= line.  [ Or he could add
-Dcdecl=Xcdecl if he wants the other Intel extensions ]
-- 
John F. Haugh II                        +-Quote of the month club: ------------
VoiceNet: (512) 832-8832   Data: -8835  |  It's not that important,
InterNet: jfh at rpp386.cactus.org         |      it's only USENET.
UUCPNet:  {texbell|bigtex}!rpp386!jfh   +--------------     -- Rich $alz   ----



More information about the Comp.unix.wizards mailing list