Hi all,
The issue with printf on PIC14 is an old one... You may consider the
proposal found in
http://simplepic.atspace.com/printf/index.html and possibly
modify/enhance the code to fit your needs (sprintf)
Daniel
Raphael Neider wrote:
>Hi George,
>
>
>>I get the following error in all th
Hi George,
> I get the following error in all the above case.
>
> message: using default linker script
> "/usr/share/gputils/lkr/16f877.lkr"
> error: missing definition for symbol "_strlen", required by
> "modiadc2lcd.o"
> error: missing definition for symbol "_sprintf", required by
> "modiadc2lc
Quadruple posting only annoys people and does not make them willing to
help. (Not that I could)
> #include
> #include
> #define __16f877A
> #include"pic/pic16f877a.h"
...
> }
> return;
> }
>
> When i compiled the above program using sdcc
> sdcc --debug -mpic14 -p16f877 progname.c
> or
> sdc
#include
#include
#define __16f877A
#include"pic/pic16f877a.h"
//---Varables//
//char x;
int dat;
int val;
int value;
int value1;
float value2;
int i;
char str[20];
//---Functions---//
//---Delay-
#include
#include
#define __16f877A
#include"pic/pic16f877a.h"
//---Varables//
//char x;
int dat;
int val;
int value;
int value1;
float value2;
int i;
char str[20];
//---Functions---//
//---Delay-
#include
#include
#define __16f877A
#include"pic/pic16f877a.h"
//---Varables//
//char x;
int dat;
int val;
int value;
int value1;
float value2;
int i;
char str[20];
//---Functions---//
//---Delay-
#include
#include
#define __16f877A
#include"pic/pic16f877a.h"
//---Varables//
//char x;
int dat;
int val;
int value;
int value1;
float value2;
int i;
char str[20];
//---Functions---//
//---Delay-