Hello
Thanks Raphael for your help
I can put directly print("bonjour");
I give this very simple example, but I work with the I2c with the timer
DS1307.
I want to give the day and the month with
const char semaine[7][9] ={
"lundi","mardi","mercredi","jeudi","vendredi","samedi","dimanche"};
con
> #define __16f877
> #include
> #include "../lib/projet877.h"
>
> const char *essai;
/* Work around initializer bugs. */
void init_stuff(void)
{
essai = "bonjour";
}
> void main(void)
> {
init_stuff(); /* initialize string arrays */
> init_serie();
> print (essai);
> }
>
I was working with sdcc 2.6.0
and i try to work with sdcc 2.7.0
The same program
#define __16f877
#include
#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/