[m-dev.] fixed limits and more fixed limits

Peter Ross peter.ross at miscrit.be
Sat Aug 12 00:45:11 AEST 2000


On Fri, Aug 11, 2000 at 11:29:03AM +0200, Peter Ross wrote:
> Hi,
> 
> I have been trying to get none.gc.debug grade working under MSVC.  Guess
> what, I have hit another fixed limit.
> 
> MERCURY_INT_DIR=../library MERCURY_ALL_C_INCL_DIRS=" -I../trace -I../library -I../runtime -I../boehm_gc -I../boehm_gc/include " ../scripts/mgnuc --grade none.gc.debug            -c mdb.debugger_interface.c /Fomdb.debugger_interface.obj
> mdb.debugger_interface.c
> mdb.debugger_interface.c(22590) : error C2026: string too big, trailing characters truncated
> make: *** [mdb.debugger_interface.obj] Error 2
> 
> Which according to MSDN (otherwise known as the  repository of all
> sacred knowledge)
> 
>     Compiler Error C2026
>     string too big, trailing characters truncated
> 
>     The string was longer than the limit of 2048 characters.
> 
>     After adjacent strings are concatenated, a string cannot be longer than
>     2048 characters.
> 
However what is most amusing is that the error can be avoided as follows

char *s = "a very long string";

becomes

char *s = "a very" " long string";

and hey presto, problem solved!

A slightly bemused,
Pete
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list