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


Groups > comp.lang.c > #107894

Re: Need help fixing a "previously defined" error

From Spiros Bousbouras <spibou@gmail.com>
Newsgroups comp.lang.c
Subject Re: Need help fixing a "previously defined" error
References <20170408-130720.9.0@Peabody.ssl.astraweb.com> <t31iec5ro3htegq46dbo6s5fh93q0jvht9@4ax.com> <20170408-180409.292.0@Peabody.ssl.astraweb.com> <ocbdnr$g7i$1@dont-email.me>
Message-ID <ebbGA.811111$F83.797213@fx38.am4> (permalink)
Organization virginmedia.com
Date 2017-04-08 19:51 +0000

Show all headers | View raw


On Sat, 8 Apr 2017 15:33:07 -0400
James Kuyper <jameskuyper@verizon.net> wrote:
> On 04/08/2017 02:04 PM, Peabody wrote:
> > Anyway, the idea is that by defining the macro, I can
> > otherwise leave TI's code the way it is, and leave LCC's
> > string.h the way it is, but eliminate the error.
> 
> That would work, but I recommend removing the spurious declaration
> instead. If it isn't actually being used, removing it is harmless. If it
> is being used, removing it is a quick and simple way of finding out
> where it's being used - doing so will almost certainly trigger an error
> message if it is, in fact, being used.

Whichever option he chooses , he should add a comment in the code. I've been
meaning to say this and kept forgetting.

> > The program does lots of different things, and I don't
> > really have a way to test all of them because I don't have
> > the chips they apply to.
> 
> You only need to test the parts you plan to use.
> 
> > ...  Actually, I don't even understand
> > all of them.  So you're saying that I would have to find the
> > same version of Visual C that was used originally, which I
> > don't think I know unless it's in the exe somewhere, to be
> > sure that it behaves the same.
> 
> That would help, if it's easy to arrange. If not, you'll just have to
> try it and see whether it works as intended.

I don't think that relying on a specific version of a specific compiler is
serviceable in the long run. If the code relies on a specific compiler better
to find this out sooner than later.

-- 
What will the successor of the ipod be called ? Bipod !

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


Thread

Need help fixing a "previously defined" error Peabody <waybackNO584SPAM44@yahoo.com> - 2017-04-08 08:07 -0500
  Re: Need help fixing a "previously defined" error James Kuyper <jameskuyper@verizon.net> - 2017-04-08 10:47 -0400
    Re: Need help fixing a "previously defined" error Peabody <waybackNO584SPAM44@yahoo.com> - 2017-04-08 12:51 -0500
      Re: Need help fixing a "previously defined" error Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-04-08 20:03 +0100
      Re: Need help fixing a "previously defined" error Spiros Bousbouras <spibou@gmail.com> - 2017-04-08 19:06 +0000
      Re: Need help fixing a "previously defined" error James Kuyper <jameskuyper@verizon.net> - 2017-04-08 15:17 -0400
  Re: Need help fixing a "previously defined" error Spiros Bousbouras <spibou@gmail.com> - 2017-04-08 15:29 +0000
  Re: Need help fixing a "previously defined" error Barry Schwarz <schwarzb@dqel.com> - 2017-04-08 09:21 -0700
    Re: Need help fixing a "previously defined" error Peabody <waybackNO584SPAM44@yahoo.com> - 2017-04-08 13:04 -0500
      Re: Need help fixing a "previously defined" error James Kuyper <jameskuyper@verizon.net> - 2017-04-08 15:33 -0400
        Re: Need help fixing a "previously defined" error Spiros Bousbouras <spibou@gmail.com> - 2017-04-08 19:51 +0000
        Re: Need help fixing a "previously defined" error Peabody <waybackNO584SPAM44@yahoo.com> - 2017-04-08 16:24 -0500
    Re: Need help fixing a "previously defined" error Keith Thompson <kst-u@mib.org> - 2017-04-08 18:45 -0700
  Re: Need help fixing a "previously defined" error bartc <bc@freeuk.com> - 2017-04-08 17:46 +0100
    Re: Need help fixing a "previously defined" error Peabody <waybackNO584SPAM44@yahoo.com> - 2017-04-08 13:19 -0500
  Re: Need help fixing a "previously defined" error David Brown <david.brown@hesbynett.no> - 2017-04-09 12:38 +0200
    Re: Need help fixing a "previously defined" error Peabody <waybackNO584SPAM44@yahoo.com> - 2017-04-09 07:52 -0500
      Re: Need help fixing a "previously defined" error David Brown <david.brown@hesbynett.no> - 2017-04-09 17:02 +0200
        Re: Need help fixing a "previously defined" error Peabody <waybackNO584SPAM44@yahoo.com> - 2017-04-09 18:20 -0500
          Re: Need help fixing a "previously defined" error James Kuyper <jameskuyper@verizon.net> - 2017-04-09 22:06 -0400
          Re: Need help fixing a "previously defined" error David Brown <david.brown@hesbynett.no> - 2017-04-10 09:07 +0200
            Re: Need help fixing a "previously defined" error Peabody <waybackNO584SPAM44@yahoo.com> - 2017-04-10 09:11 -0500
              Re: Need help fixing a "previously defined" error David Brown <david.brown@hesbynett.no> - 2017-04-10 17:31 +0200
                Re: Need help fixing a "previously defined" error Peabody <waybackNO584SPAM44@yahoo.com> - 2017-04-10 12:48 -0500

csiph-web