delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/04/08:44:00

Date: Sun, 4 Feb 2001 15:36:49 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Dietmar Segbert <Dietmar DOT Segbert AT T-ONLINE DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: syntax for hex and binary
In-Reply-To: <7vEMlT$6JVB@0256597511.t-online.de>
Message-ID: <Pine.SUN.3.91.1010204153152.26316A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 4 Feb 2001, Dietmar Segbert wrote:

> And GCC makes a error like undeclared _B115200 ...
> 
> A integer 16 will be written in hex as 0x10, but who is the syntax for  
> binary?

There's no syntax to write a binary integer constant in C.

In this case, B115200 is not a binary constant, however (binary constants 
can only have digits 0 or 1).  I'm guessing that B115200 is a macro for 
setting the UART to work at 115200 baudrate.  It should be defined by 
some header included by the source file you are trying to compile.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019