Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #142888

Re: Question about #error

Path csiph.com!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From nobody@example.org (Scott)
Newsgroups comp.lang.c
Subject Re: Question about #error
Date Sun, 07 Apr 2019 17:10:59 GMT
Organization XMission http://xmission.com/
Message-ID <5caa2e4f.1731781783@core> (permalink)
References <q7g72f$59q$1@news.xmission.com> <kvOmE.495298$YR5.287046@fx45.iad> <5c9c4cbb.822065408@core> <86o95il20y.fsf@mailhub.linuxsc.com> <q8cj1v$st6$2@news.xmission.com>
Injection-Info news.xmission.com; posting-host="shell.xmission.com:2607:fa18:0:beef::4"; logging-data="9319"; mail-complaints-to="abuse@xmission.com"
X-Newsreader Forte Free Agent 1.21/32.243
Xref csiph.com comp.lang.c:142888

Show key headers only | View raw


On Sun, 7 Apr 2019 10:22:55 -0000 (UTC), gazelle@shell.xmission.com
(Kenny McCormack) wrote:

>In article <86o95il20y.fsf@mailhub.linuxsc.com>,
>Tim Rentsch  <tr.17687@z991.linuxsc.com> wrote:
>...
>>> I wonder if there's a compiler flag to have it regard #error as an
>>> immediate halting point.  I don't wonder enough to look it up though.
>>
>>I believe there is not, at least for gcc.  In practice
>>though I expect the following would have the desired
>>effect:
>>
>>    #error ... your message here ...
>>    #include "no-such-file-so-stop-compiling-already.h"
>>
>
>This is a good suggestion - and, really nice that this thread finally got
>back on-topic after all the ranting and raving about other stuff that many
>posters have engaged in.  I will try it out at some point.  Thanks.

That *is* a good hint. Clever.

With my luck, "no-such-file-so-stop-compiling-already.h" would
actually exist as some kind of dummy load for compression or
encryption experiments. The chances of it containing valid C are low,
though.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Question about #error gazelle@shell.xmission.com (Kenny McCormack) - 2019-03-27 16:06 +0000
  Re: Question about #error Chad <cdalten@gmail.com> - 2019-03-27 10:21 -0700
  Re: Question about #error scott@slp53.sl.home (Scott Lurndal) - 2019-03-27 17:35 +0000
    Re: Question about #error nobody@example.org (Scott) - 2019-03-28 04:33 +0000
      Re: Question about #error Tim Rentsch <tr.17687@z991.linuxsc.com> - 2019-04-07 00:15 -0700
        Re: Question about #error gazelle@shell.xmission.com (Kenny McCormack) - 2019-04-07 10:22 +0000
          Re: Question about #error nobody@example.org (Scott) - 2019-04-07 17:10 +0000
  Re: Question about #error Bart <bc@freeuk.com> - 2019-03-27 17:52 +0000
  Re: Question about #error luser droog <luser.droog@gmail.com> - 2019-03-27 12:36 -0700
    Re: Question about #error luser droog <luser.droog@gmail.com> - 2019-03-27 12:47 -0700
  Re: Question about #error John Bode <jfbode1029@gmail.com> - 2019-03-27 14:28 -0700
    Re: Question about #error David Brown <david.brown@hesbynett.no> - 2019-03-27 22:38 +0100
  Re: Question about #error Thiago Adams <thiago.adams@gmail.com> - 2019-03-28 13:59 -0700
    Re: Question about #error Keith Thompson <kst-u@mib.org> - 2019-03-28 14:28 -0700
      Re: Question about #error Thiago Adams <thiago.adams@gmail.com> - 2019-03-29 07:09 -0700
        Re: Question about #error James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-03-29 08:05 -0700
          Re: Question about #error Thiago Adams <thiago.adams@gmail.com> - 2019-03-29 12:08 -0700
            Re: Question about #error Thiago Adams <thiago.adams@gmail.com> - 2019-03-29 12:15 -0700
            Re: Question about #error Thiago Adams <thiago.adams@gmail.com> - 2019-03-29 12:53 -0700
          Re: Question about #error Thiago Adams <thiago.adams@gmail.com> - 2019-03-30 14:40 -0700
            Re: Question about #error Keith Thompson <kst-u@mib.org> - 2019-03-30 15:19 -0700
              Re: Question about #error Thiago Adams <thiago.adams@gmail.com> - 2019-03-30 16:17 -0700
                Re: Question about #error scott@slp53.sl.home (Scott Lurndal) - 2019-03-31 19:12 +0000
                Re: Question about #error Thiago Adams <thiago.adams@gmail.com> - 2019-04-01 04:32 -0700
              Re: Question about #error David Brown <david.brown@hesbynett.no> - 2019-03-31 20:17 +0200
                Re: Question about #error Richard Damon <Richard@Damon-Family.org> - 2019-03-31 15:09 -0400
                Re: Question about #error David Brown <david.brown@hesbynett.no> - 2019-03-31 21:46 +0200
                Re: Question about #error Thiago Adams <thiago.adams@gmail.com> - 2019-04-01 04:36 -0700
            Re: Question about #error James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-04-02 17:47 -0700
              Re: Question about #error Thiago Adams <thiago.adams@gmail.com> - 2019-04-03 05:31 -0700
                Re: Question about #error James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-04-03 06:46 -0700
                Re: Question about #error Thiago Adams <thiago.adams@gmail.com> - 2019-04-03 07:44 -0700
                Re: Question about #error Thiago Adams <thiago.adams@gmail.com> - 2019-04-03 09:46 -0700
    Re: Question about #error scott@slp53.sl.home (Scott Lurndal) - 2019-03-28 21:29 +0000
    Re: Question about #error Thiago Adams <thiago.adams@gmail.com> - 2019-03-29 07:32 -0700

csiph-web