[antlr-interest] MSVC 7.0

Arnar Birgisson arnarb at oddi.is
Thu Oct 2 09:00:32 PDT 2003


I'm sorry, this was resolved as soon as I changed my projects
compilation to use a Multithreaded DLL runtime.

That left me with other problems, now, the "if (isprint(ch))" statment
in charName(int) in string.cpp fails an assertion in the runtime's
isctype.c, line 68:

Expression: (unsigned)(c+1) <= 256.

If this doesn't ring any bells, please ignore this post, I need to
investigate this further. I just wanted to let  you know that the other
issue is resolved.

Arnar

> -----Original Message-----
> From: Arnar Birgisson [mailto:arnarb at oddi.is] 
> Sent: 2. október 2003 15:50
> To: antlr-interest at yahoogroups.com
> Subject: [antlr-interest] MSVC 7.0
> 
> 
> Hello there.
> 
> I downloaded Ric's modified ANTLR 2.7.2, dated 2003-09-11, 
> and am trying
> to compile the cpp runtime to a dll with MSVC 7.0. I followed the
> instructions in lib/cpp/README on how to create the project, 
> except that
> I skipped using a precompiled header (I checked "Empty project" in the
> project wizard).
> 
> Everything compiled without a problem (leave warnings). However when
> running a lexer, very similar to the MultiLexer example, I get access
> violations right at the beginning, related to IO.
> 
> More specifically, I get an access violation error at the 
> "input.get()"
> statement in antlr::CharBuffer::getChar(), trying to read memory
> 0x00000014.
> 
> Any ideas?
> 
> Arnar
> 
> 
>  
> 
> Your use of Yahoo! Groups is subject to 
> http://docs.yahoo.com/info/terms/ 
> 
> 


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list