I was working with sdcc 2.6.0
and i try to work with sdcc 2.7.0
The same program
#define __16f877
#include <pic16f877.h>
#include "../lib/projet877.h"

const char essai[8] = "bonjour" ;

void main(void)
{
     init_serie();
     print (essai);
}
it work with sdcc 2.6.0 on usr/bin/ with Debian Etch
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 
2.6.0 #4309 (Oct 15 2006) (UNIX)

it doesn't work with 2.7.0 on usr/local/bin/
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 
2.7.0 #4818 (May 31 2007) (UNIX)

Unhandled initialized symbol: essai
sdcc: /home/sdcc-builder/build/sdcc-build/orig/sdcc/src/pic/glue.c:1944: 
emitInitVal: Assertion `!"Initialized char-arrays are not yet supported, 
assign at runtime instead."' failed.
Caught signal 6: SIGABRT

How to use the constant with SDCC 2.7.0 ?

Thanks
Pierre

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to