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

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Sep 17 11:43:04 AEST 1989


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.



More information about the Comp.unix.wizards mailing list