You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to use the printf in my STM8 project, whoch compiles fine if I use the standard library function.
May I have issues to implement the following:
"Implement your low level output function needed for printf()" -> I don't know how to do it.
I get the following error messages with cxstm8:
Compiling printf.c...
cxstm8 +warn +mods0 +debug -pxp +compact +split -pp -l -iinclude -iC:\Hstm8 -clDebug\ -coDebug\ printf.c
#warning cpstm8 printf.c:133(7+6) implicit int type in global declaration
#error cpstm8 printf.c:133(7+6) missing ;
#error cpstm8 printf.c:136(36) missing ;
#error cpstm8 printf.c:144(17) incomplete declaration
#warning cpstm8 printf.c:144(24) implicit int type in global declaration
#warning cpstm8 printf.c:144(38) implicit int type in global declaration
#warning cpstm8 printf.c:144(49) implicit int type in global declaration
#error cpstm8 printf.c:144(56) missing ;
#error cpstm8 printf.c:151(14) incomplete declaration
#warning cpstm8 printf.c:151(21) implicit int type in global declaration
#warning cpstm8 printf.c:151(32) implicit int type in global declaration
#error cpstm8 printf.c:151(39) missing ;
#error cpstm8 printf.c:153(23) incomplete declaration
#error cpstm8 printf.c:161(11) incomplete declaration
#warning cpstm8 printf.c:161(18) implicit int type in global declaration
#error cpstm8 printf.c:161(25) missing ;
#error cpstm8 printf.c:164(83) incomplete declaration
#error cpstm8 printf.c:173(15) incomplete declaration
#error cpstm8 printf.c:174(14) incomplete declaration
#warning cpstm8 printf.c:174(17) implicit int type in global declaration
#error cpstm8 printf.c:174(31) missing ;
#error cpstm8 printf.c:174(37) incomplete declaration
#error cpstm8 printf.c:175(32) incomplete declaration
#error cpstm8 printf.c:183(35) incomplete declaration
#error cpstm8 printf.c:190(21) incomplete declaration
#error cpstm8 printf.c:192(51) incomplete declaration
#error cpstm8 printf.c:194(10) incomplete declaration
#error cpstm8 printf.c:201(30) incomplete declaration
#error cpstm8 printf.c:205(23) incomplete declaration
#warning cpstm8 printf.c:205(25) implicit int type in global declaration
#warning cpstm8 printf.c:205(36) implicit int type in global declaration
#error cpstm8 printf.c:206(37) missing ;
#error cpstm8 printf.c:212(42) incomplete declaration
#error cpstm8 printf.c:218(37) incomplete declaration
#error cpstm8 printf.c:222(12) incomplete declaration
#error cpstm8 printf.c:232(13) incomplete declaration
#error cpstm8 printf.c:235(22) incomplete declaration
#error cpstm8 printf.c:238(22) incomplete declaration
#error cpstm8 printf.c:245(11) incomplete declaration
#error cpstm8 printf.c:247(13) incomplete declaration
#error cpstm8 printf.c:251(22) incomplete declaration
#error cpstm8 printf.c:254(22) incomplete declaration
#error cpstm8 printf.c:257(22) incomplete declaration
#error cpstm8 printf.c:260(22) incomplete declaration
#error cpstm8 printf.c:266(22) incomplete declaration
#error cpstm8 printf.c:269(22) incomplete declaration
#error cpstm8 printf.c:272(22) incomplete declaration
#error cpstm8 printf.c:276(67) incomplete declaration
#error cpstm8 printf.c:283(35) incomplete declaration
#error cpstm8 printf.c:284(17) missing ;
#error cpstm8 printf.c:288(24) incomplete declaration
#error cpstm8 printf.c:294(45) incomplete declaration
#error cpstm8 printf.c:295(13+2) invalid constant expression
#warning cpstm8 printf.c:295(15) implicit int type in global declaration
#error cpstm8 printf.c:295(19+5) missing {
#error cpstm8 printf.c:295(94+2) invalid initializer expression
#warning cpstm8 printf.c:296(6+5) implicit int type in global declaration
#error cpstm8 printf.c:296(19) missing ;
#error cpstm8 printf.c:297(54) incomplete declaration
#error cpstm8 printf.c:300(107) incomplete declaration
#error cpstm8 printf.c:308(35) incomplete declaration
#error cpstm8 printf.c:309(13) redeclared external len
#error cpstm8 printf.c:309(17) missing ;
#error cpstm8 printf.c:313(24) incomplete declaration
#error cpstm8 printf.c:319(45) incomplete declaration
#error cpstm8 printf.c:320(13+2) invalid constant expression
#warning cpstm8 printf.c:320(15) implicit int type in global declaration
#error cpstm8 printf.c:320(17) redeclared external buf
#error cpstm8 printf.c:320(19+5) missing {
#error cpstm8 printf.c:320(94+2) invalid initializer expression
#warning cpstm8 printf.c:321(6+5) implicit int type in global declaration
#error cpstm8 printf.c:321(19) missing ;
#error cpstm8 printf.c:322(54) incomplete declaration
#error cpstm8 printf.c:325(107) incomplete declaration
#error cpstm8 printf.c:334(151) incomplete declaration
#error cpstm8 printf.c:350(19) missing prototype
#error cpstm8 printf.c:352(19) missing prototype
#error cpstm8 printf.c:354(19) missing prototype
#error cpstm8 printf.c:360(16) missing prototype
#error cpstm8 printf.c:367(2+5) misplaced local declaration
#error cpstm8 printf.c:383(2+3) misplaced local declaration
#error cpstm8 printf.c:384(2+6) misplaced local declaration
#error cpstm8 printf.c:385(2+8) misplaced local declaration
#error cpstm8 printf.c:461(17) missing prototype
#error cpstm8 printf.c:386(15+4) frac undefined
#error cpstm8 printf.c:386(9+3) tmp undefined
#error cpstm8 printf.c:369(4+8) negative undefined
#error cpstm8 printf.c:393(8+5) whole undefined
#error cpstm8 printf.c:404(27+5) whole undefined
#error cpstm8 printf.c:433(30+5) whole undefined
#error cpstm8 printf.c:441(18+8) negative undefined
#error cpstm8 printf.c:450(8+8) negative undefined
#error cpstm8 printf.c:475(2+5) misplaced local declaration
#error cpstm8 printf.c:487(2+5) misplaced local declaration
#error cpstm8 printf.c:489(4+6) misplaced local declaration
#warning cpstm8 printf.c:490(2) missing explicit return
#error cpstm8 printf.c:476(6+8) negative undefined
#warning cpstm8 printf.c:490(4+4) implicit int type in global declaration
#warning cpstm8 printf.c:492(2+4) implicit int type in global declaration
#error cpstm8 printf.c:493(25) bad struct/union operand
#warning cpstm8 printf.c:493(30+3) shift count out of range
#error cpstm8 printf.c:493(48+4) invalid initializer expression
#warning cpstm8 printf.c:494(2+4) implicit int type in global declaration
#error cpstm8 printf.c:494 bad integer constant
#error cpstm8 printf.c:494 bad integer constant
#error cpstm8 printf.c:496(72) bad struct/union operand
#error cpstm8 printf.c:496(100) invalid initializer expression
#warning cpstm8 printf.c:498(2+4) implicit int type in global declaration
#error cpstm8 printf.c:498(7) redeclared external exp2
#error cpstm8 printf.c:498(47) invalid initializer expression
#error cpstm8 printf.c:499(56+18) invalid initializer expression
#error cpstm8 printf.c:500(24) invalid initializer expression
#warning cpstm8 printf.c:501(2+4) implicit int type in global declaration
#warning cpstm8 printf.c:503(2+4) implicit int type in global declaration
#error cpstm8 printf.c:503(68) missing ;
#error cpstm8 printf.c:506(12) incomplete declaration
#warning cpstm8 printf.c:507(4+4) implicit int type in global declaration
#error cpstm8 printf.c:507(16) missing ;
#error cpstm8 printf.c:511(71) incomplete declaration
#error cpstm8 printf.c:518(49) incomplete declaration
#error cpstm8 printf.c:521(16) incomplete declaration
#error cpstm8 printf.c:523(30) incomplete declaration
#warning cpstm8 printf.c:525(6+8) implicit int type in global declaration
#warning cpstm8 printf.c:526(6+6) implicit int type in global declaration
#error cpstm8 printf.c:526(15) redeclared external expval
#error cpstm8 printf.c:526(18) missing ;
#error cpstm8 printf.c:531(14) incomplete declaration
#error cpstm8 printf.c:537(29) incomplete declaration
#error cpstm8 printf.c:540(22) incomplete declaration
#error cpstm8 printf.c:543(15) incomplete declaration
#error cpstm8 printf.c:547(15) incomplete declaration
#error cpstm8 printf.c:552(19) incomplete declaration
#error cpstm8 printf.c:556(30) incomplete declaration
#warning cpstm8 printf.c:557(2+3) implicit int type in global declaration
#error cpstm8 printf.c:557(14+3) incompatible argument type
#error cpstm8 printf.c:557(19+6) incompatible argument type
#error cpstm8 printf.c:557(105) invalid initializer expression
#error cpstm8 printf.c:557(106) missing ;
#error cpstm8 printf.c:562(69) incomplete declaration
#warning cpstm8 printf.c:564(4+3) implicit int type in global declaration
#error cpstm8 printf.c:564(8) redeclared external idx
#error cpstm8 printf.c:564(20) missing prototype
#error cpstm8 printf.c:564(137) invalid initializer expression
#error cpstm8 printf.c:564(138) missing ;
#error cpstm8 printf.c:567(69) incomplete declaration
#error cpstm8 printf.c:570(12) incomplete declaration
#error cpstm8 printf.c:579(41) incomplete declaration
#error cpstm8 printf.c:580(9+3) redeclared external idx
#error cpstm8 printf.c:580(17) missing ;
#error cpstm8 printf.c:584(19) incomplete declaration
#error cpstm8 printf.c:592(41) incomplete declaration
#warning cpstm8 printf.c:593(6+6) implicit int type in global declaration
#error cpstm8 printf.c:593(14) missing ;
#error cpstm8 printf.c:594(14) incomplete declaration
#error cpstm8 printf.c:598(14) incomplete declaration
#error cpstm8 printf.c:602(14) incomplete declaration
#error cpstm8 printf.c:605(40) incomplete declaration
#warning cpstm8 printf.c:605(42+6) implicit int type in global declaration
#warning cpstm8 printf.c:605(52) implicit int type in global declaration
#error cpstm8 printf.c:605(58) missing ;
#error cpstm8 printf.c:605(65) incomplete declaration
#error cpstm8 printf.c:606(37) incomplete declaration
#warning cpstm8 printf.c:606(42+6) implicit int type in global declaration
#warning cpstm8 printf.c:606(52) implicit int type in global declaration
#error cpstm8 printf.c:606(54) redeclared external n
#error cpstm8 printf.c:606(58) missing ;
#error cpstm8 printf.c:606(65) incomplete declaration
#error cpstm8 printf.c:607(37) incomplete declaration
#warning cpstm8 printf.c:607(42+6) implicit int type in global declaration
#warning cpstm8 printf.c:607(52) implicit int type in global declaration
#error cpstm8 printf.c:607(54) redeclared external n
#error cpstm8 printf.c:607(58) missing ;
#error cpstm8 printf.c:607(65) incomplete declaration
#error cpstm8 printf.c:608(38) incomplete declaration
#warning cpstm8 printf.c:608(42+6) implicit int type in global declaration
#warning cpstm8 printf.c:608(52) implicit int type in global declaration
#error cpstm8 printf.c:608(54) redeclared external n
#error cpstm8 printf.c:608(58) missing ;
#error cpstm8 printf.c:608(65) incomplete declaration
#error cpstm8 printf.c:609(37) incomplete declaration
#warning cpstm8 printf.c:609(42+6) implicit int type in global declaration
#warning cpstm8 printf.c:609(52) implicit int type in global declaration
#error cpstm8 printf.c:609(54) redeclared external n
#error cpstm8 printf.c:609(58) missing ;
#error cpstm8 printf.c:609(65) incomplete declaration
#error cpstm8 printf.c:610(58) incomplete declaration
#error cpstm8 printf.c:610(65) incomplete declaration
#error cpstm8 printf.c:612(15) incomplete declaration
#warning cpstm8 printf.c:615(4+5) implicit int type in global declaration
#error cpstm8 printf.c:615(14) missing ;
#error cpstm8 printf.c:617(28) incomplete declaration
#error cpstm8 printf.c:620(35) incomplete declaration
#error cpstm8 printf.c:622(27) incomplete declaration
#warning cpstm8 printf.c:623(8+5) implicit int type in global declaration
#error cpstm8 printf.c:623(14) redeclared external width
#error cpstm8 printf.c:623(31) invalid initializer expression
#error cpstm8 printf.c:623(32) missing ;
#error cpstm8 printf.c:626(31) incomplete declaration
#error cpstm8 printf.c:628(14) incomplete declaration
#error cpstm8 printf.c:632(18) incomplete declaration
#error cpstm8 printf.c:634(30) incomplete declaration
#warning cpstm8 printf.c:635(6+6) implicit int type in global declaration
#error cpstm8 printf.c:635(14) missing ;
#error cpstm8 printf.c:637(34) incomplete declaration
#error cpstm8 printf.c:640(45) incomplete declaration
#warning cpstm8 printf.c:641(8+9) implicit int type in global declaration
#error cpstm8 printf.c:641(52+2) invalid initializer expression
#warning cpstm8 printf.c:642(8+6) implicit int type in global declaration
#error cpstm8 printf.c:642(16) missing ;
#error cpstm8 printf.c:649(27) incomplete declaration
#warning cpstm8 printf.c:650(8+6) implicit int type in global declaration
#error cpstm8 printf.c:650(16) missing ;
#error cpstm8 printf.c:652(34) incomplete declaration
#warning cpstm8 printf.c:653(10+6) implicit int type in global declaration
#error cpstm8 printf.c:653(18) missing ;
#error cpstm8 printf.c:655(13) incomplete declaration
#error cpstm8 printf.c:657(28) incomplete declaration
#warning cpstm8 printf.c:658(8+6) implicit int type in global declaration
#error cpstm8 printf.c:658(16) missing ;
#error cpstm8 printf.c:660(29) incomplete declaration
#warning cpstm8 printf.c:661(10+6) implicit int type in global declaration
#error cpstm8 printf.c:661(18) missing ;
#error cpstm8 printf.c:663(13) incomplete declaration
#error cpstm8 printf.c:666(83) incomplete declaration
#warning cpstm8 printf.c:667(8+6) implicit int type in global declaration
#error cpstm8 printf.c:667(16) missing ;
#error cpstm8 printf.c:668(13) incomplete declaration
#error cpstm8 printf.c:671(82) incomplete declaration
#warning cpstm8 printf.c:672(8+6) implicit int type in global declaration
#error cpstm8 printf.c:672(16) missing ;
#error cpstm8 printf.c:673(13) incomplete declaration
#error cpstm8 printf.c:675(80) incomplete declaration
#warning cpstm8 printf.c:676(8+6) implicit int type in global declaration
#error cpstm8 printf.c:676(16) missing ;
#error cpstm8 printf.c:677(13) incomplete declaration
#error cpstm8 printf.c:679(13) incomplete declaration
#error cpstm8 printf.c:692(25) incomplete declaration
#error cpstm8 printf.c:694(20) incomplete declaration
#error cpstm8 printf.c:697(20) incomplete declaration
#error cpstm8 printf.c:700(20) incomplete declaration
#error cpstm8 printf.c:703(20) incomplete declaration
#warning cpstm8 printf.c:704(10+5) implicit int type in global declaration
#error cpstm8 printf.c:704(30) missing ;
#error cpstm8 printf.c:708(34) incomplete declaration
#error cpstm8 printf.c:713(46) incomplete declaration
#error cpstm8 printf.c:718(33) incomplete declaration
#error cpstm8 printf.c:726(57) incomplete declaration
#warning cpstm8 printf.c:727(12+3) implicit int type in global declaration
#error cpstm8 printf.c:727(16) redeclared external idx
#error cpstm8 printf.c:727(33) missing prototype
#error cpstm8 printf.c:727(75+4) repeated type specification
#error cpstm8 printf.c:727(153) invalid initializer expression
#error cpstm8 printf.c:727(154) missing ;
#error cpstm8 printf.c:731(47) incomplete declaration
#warning cpstm8 printf.c:732(12+3) implicit int type in global declaration
#error cpstm8 printf.c:732(16) redeclared external idx
#error cpstm8 printf.c:732(28) missing prototype
#error cpstm8 printf.c:732(143) invalid initializer expression
#error cpstm8 printf.c:732(144) missing ;
#error cpstm8 printf.c:735(145) incomplete declaration
#warning cpstm8 printf.c:736(12+3) implicit int type in global declaration
#error cpstm8 printf.c:736(16) redeclared external idx
#error cpstm8 printf.c:736(28) missing prototype
#error cpstm8 printf.c:736(142) invalid initializer expression
#error cpstm8 printf.c:736(143) missing ;
#error cpstm8 printf.c:743(129) incomplete declaration
#error cpstm8 printf.c:747(119) incomplete declaration
#error cpstm8 printf.c:750(199) incomplete declaration
#warning cpstm8 printf.c:751(12+3) implicit int type in global declaration
#error cpstm8 printf.c:751(16) redeclared external idx
#error cpstm8 printf.c:751(28) missing prototype
#error cpstm8 printf.c:751(98) invalid initializer expression
#error cpstm8 printf.c:751(99) missing ;
#error cpstm8 printf.c:754(16) incomplete declaration
#error cpstm8 printf.c:755(13) incomplete declaration
#error cpstm8 printf.c:760(52) incomplete declaration
#warning cpstm8 printf.c:761(8+3) implicit int type in global declaration
#error cpstm8 printf.c:761(12) redeclared external idx
#error cpstm8 printf.c:761(20+3) incompatible argument type
#error cpstm8 printf.c:761(25+6) incompatible argument type
#error cpstm8 printf.c:761(89) invalid initializer expression
#warning cpstm8 printf.c:762(8+6) implicit int type in global declaration
#error cpstm8 printf.c:762(16) missing ;
#error cpstm8 printf.c:763(13) incomplete declaration
#error cpstm8 printf.c:769(72) incomplete declaration
#error cpstm8 printf.c:770(72) incomplete declaration
#warning cpstm8 printf.c:771(8+3) implicit int type in global declaration
#error cpstm8 printf.c:771(12) redeclared external idx
#error cpstm8 printf.c:771(20+3) incompatible argument type
#error cpstm8 printf.c:771(25+6) incompatible argument type
#error cpstm8 printf.c:771(89) invalid initializer expression
#warning cpstm8 printf.c:772(8+6) implicit int type in global declaration
#error cpstm8 printf.c:772(16) missing ;
#error cpstm8 printf.c:773(13) incomplete declaration
#error cpstm8 printf.c:777(27) incomplete declaration
#error cpstm8 printf.c:781(43) incomplete declaration
#error cpstm8 printf.c:785(57) incomplete declaration
#error cpstm8 printf.c:789(43) incomplete declaration
#error cpstm8 printf.c:792(16) incomplete declaration
#error cpstm8 printf.c:793(13) incomplete declaration
#error cpstm8 printf.c:797(41) incomplete declaration
#error cpstm8 printf.c:798(35) missing prototype
#error cpstm8 printf.c:798(73) invalid initializer expression
#error cpstm8 printf.c:798(74) missing ;
#error cpstm8 printf.c:801(45) incomplete declaration
#error cpstm8 printf.c:805(43) incomplete declaration
#error cpstm8 printf.c:810(44) incomplete declaration
#error cpstm8 printf.c:815(43) incomplete declaration
#error cpstm8 printf.c:818(16) incomplete declaration
#error cpstm8 printf.c:819(13) incomplete declaration
#error cpstm8 printf.c:823(34) incomplete declaration
#warning cpstm8 printf.c:824(8+5) implicit int type in global declaration
#error cpstm8 printf.c:826(60+4) repeated type specification
#error cpstm8 printf.c:826(65) missing ;
#error cpstm8 printf.c:828(124) incomplete declaration
#error cpstm8 printf.c:832(136) incomplete declaration
#error cpstm8 printf.c:836(16) incomplete declaration
#error cpstm8 printf.c:837(13) incomplete declaration
#error cpstm8 printf.c:841(39) incomplete declaration
#warning cpstm8 printf.c:842(8+6) implicit int type in global declaration
#error cpstm8 printf.c:842(16) missing ;
#error cpstm8 printf.c:843(13) incomplete declaration
#error cpstm8 printf.c:846(43) incomplete declaration
#warning cpstm8 printf.c:847(8+6) implicit int type in global declaration
#error cpstm8 printf.c:847(16) missing ;
#error cpstm8 printf.c:848(13) incomplete declaration
#error cpstm8 printf.c:853(64) incomplete declaration
#error cpstm8 printf.c:856(17) incomplete declaration
#error cpstm8 printf.c:864(12) incomplete declaration
#error cpstm8 printf.c:865(2) missing )
#error cpstm8 printf.c:866(15) redeclared external buffer
#error cpstm8 printf.c:867(28) missing prototype
#error cpstm8 printf.c:867(70) invalid initializer expression
#warning cpstm8 printf.c:868(2+2) implicit int type in global declaration
#error cpstm8 printf.c:868(12) missing ;
#error cpstm8 printf.c:869(12) incomplete declaration
#error cpstm8 printf.c:875(12) incomplete declaration
#error cpstm8 printf.c:876(2) missing )
#error cpstm8 printf.c:877(16) redeclared external ret
#error cpstm8 printf.c:877(28) missing prototype
#error cpstm8 printf.c:877(72) invalid initializer expression
#warning cpstm8 printf.c:878(2+2) implicit int type in global declaration
#error cpstm8 printf.c:878(12) missing ;
#error cpstm8 printf.c:879(12) incomplete declaration
#error cpstm8 printf.c:885(12) incomplete declaration
#error cpstm8 printf.c:886(2) missing )
#error cpstm8 printf.c:887(16) redeclared external ret
#error cpstm8 printf.c:887(28) missing prototype
#error cpstm8 printf.c:887(67) invalid initializer expression
#warning cpstm8 printf.c:888(2+2) implicit int type in global declaration
#error cpstm8 printf.c:888(12) missing ;
#error cpstm8 printf.c:889(12) incomplete declaration
#error cpstm8 printf.c:895(16) incomplete declaration
#error cpstm8 printf.c:896(62) incomplete declaration
#error cpstm8 printf.c:902(59) incomplete declaration
#error cpstm8 printf.c:908(12) incomplete declaration
#error cpstm8 printf.c:909(2) missing )
#error cpstm8 printf.c:910(43+3) invalid pointer initializer
#error cpstm8 printf.c:910(48+3) invalid pointer initializer
#error cpstm8 printf.c:911(16) redeclared external ret
#error cpstm8 printf.c:911(28) missing prototype
#error cpstm8 printf.c:911(94) invalid initializer expression
#warning cpstm8 printf.c:912(2+2) implicit int type in global declaration
#error cpstm8 printf.c:912(12) missing ;
#error cpstm8 printf.c:913(12) incomplete declaration
#error cpstm8 printf.c:914(0) incomplete declaration
#error cpstm8 printf.c:911(29+8) _out_fct undefined
#error cpstm8 printf.c:910(48+3) arg undefined
#error cpstm8 printf.c:887(50+5) count undefined
#error cpstm8 printf.c:877(29+11) _out_buffer undefined
#error cpstm8 printf.c:867(29+9) _out_char undefined
#error cpstm8 printf.c:798(36) p undefined
#error cpstm8 printf.c:761(46+2) va undefined
#error cpstm8 printf.c:727(124+4) base undefined
#error cpstm8 printf.c:623(31) w undefined
#error cpstm8 printf.c:557(73+6) fwidth undefined
#error cpstm8 printf.c:557(67+4) prec undefined
#error cpstm8 printf.c:557(40+8) negative undefined
#error cpstm8 printf.c:557(32+6) maxlen undefined
#error cpstm8 printf.c:557(19+6) buffer undefined
#error cpstm8 printf.c:557(14+3) out undefined
#error cpstm8 printf.c:295(47+5) flags undefined
#error cpstm8 printf.c:295(19+5) digit undefined
#error cpstm8 printf.c:914 array buf size unknown
printf.c:
The command: "cxstm8 +warn +mods0 +debug -pxp +compact +split -pp -l -iinclude -iC:\Hstm8 -clDebug\ -coDebug\ printf.c" has failed, the returned value is: 1
exit code=1.
printf.o - 320 error(s), 66 warning(s)
The text was updated successfully, but these errors were encountered:
I try to use the printf in my STM8 project, whoch compiles fine if I use the standard library function.
May I have issues to implement the following:
"Implement your low level output function needed for printf()" -> I don't know how to do it.
I get the following error messages with cxstm8:
Compiling printf.c...
cxstm8 +warn +mods0 +debug -pxp +compact +split -pp -l -iinclude -iC:\Hstm8 -clDebug\ -coDebug\ printf.c
#warning cpstm8 printf.c:133(7+6) implicit int type in global declaration
#error cpstm8 printf.c:133(7+6) missing ;
#error cpstm8 printf.c:136(36) missing ;
#error cpstm8 printf.c:144(17) incomplete declaration
#warning cpstm8 printf.c:144(24) implicit int type in global declaration
#warning cpstm8 printf.c:144(38) implicit int type in global declaration
#warning cpstm8 printf.c:144(49) implicit int type in global declaration
#error cpstm8 printf.c:144(56) missing ;
#error cpstm8 printf.c:151(14) incomplete declaration
#warning cpstm8 printf.c:151(21) implicit int type in global declaration
#warning cpstm8 printf.c:151(32) implicit int type in global declaration
#error cpstm8 printf.c:151(39) missing ;
#error cpstm8 printf.c:153(23) incomplete declaration
#error cpstm8 printf.c:161(11) incomplete declaration
#warning cpstm8 printf.c:161(18) implicit int type in global declaration
#error cpstm8 printf.c:161(25) missing ;
#error cpstm8 printf.c:164(83) incomplete declaration
#error cpstm8 printf.c:173(15) incomplete declaration
#error cpstm8 printf.c:174(14) incomplete declaration
#warning cpstm8 printf.c:174(17) implicit int type in global declaration
#error cpstm8 printf.c:174(31) missing ;
#error cpstm8 printf.c:174(37) incomplete declaration
#error cpstm8 printf.c:175(32) incomplete declaration
#error cpstm8 printf.c:183(35) incomplete declaration
#error cpstm8 printf.c:190(21) incomplete declaration
#error cpstm8 printf.c:192(51) incomplete declaration
#error cpstm8 printf.c:194(10) incomplete declaration
#error cpstm8 printf.c:201(30) incomplete declaration
#error cpstm8 printf.c:205(23) incomplete declaration
#warning cpstm8 printf.c:205(25) implicit int type in global declaration
#warning cpstm8 printf.c:205(36) implicit int type in global declaration
#error cpstm8 printf.c:206(37) missing ;
#error cpstm8 printf.c:212(42) incomplete declaration
#error cpstm8 printf.c:218(37) incomplete declaration
#error cpstm8 printf.c:222(12) incomplete declaration
#error cpstm8 printf.c:232(13) incomplete declaration
#error cpstm8 printf.c:235(22) incomplete declaration
#error cpstm8 printf.c:238(22) incomplete declaration
#error cpstm8 printf.c:245(11) incomplete declaration
#error cpstm8 printf.c:247(13) incomplete declaration
#error cpstm8 printf.c:251(22) incomplete declaration
#error cpstm8 printf.c:254(22) incomplete declaration
#error cpstm8 printf.c:257(22) incomplete declaration
#error cpstm8 printf.c:260(22) incomplete declaration
#error cpstm8 printf.c:266(22) incomplete declaration
#error cpstm8 printf.c:269(22) incomplete declaration
#error cpstm8 printf.c:272(22) incomplete declaration
#error cpstm8 printf.c:276(67) incomplete declaration
#error cpstm8 printf.c:283(35) incomplete declaration
#error cpstm8 printf.c:284(17) missing ;
#error cpstm8 printf.c:288(24) incomplete declaration
#error cpstm8 printf.c:294(45) incomplete declaration
#error cpstm8 printf.c:295(13+2) invalid constant expression
#warning cpstm8 printf.c:295(15) implicit int type in global declaration
#error cpstm8 printf.c:295(19+5) missing {
#error cpstm8 printf.c:295(94+2) invalid initializer expression
#warning cpstm8 printf.c:296(6+5) implicit int type in global declaration
#error cpstm8 printf.c:296(19) missing ;
#error cpstm8 printf.c:297(54) incomplete declaration
#error cpstm8 printf.c:300(107) incomplete declaration
#error cpstm8 printf.c:308(35) incomplete declaration
#error cpstm8 printf.c:309(13) redeclared external len
#error cpstm8 printf.c:309(17) missing ;
#error cpstm8 printf.c:313(24) incomplete declaration
#error cpstm8 printf.c:319(45) incomplete declaration
#error cpstm8 printf.c:320(13+2) invalid constant expression
#warning cpstm8 printf.c:320(15) implicit int type in global declaration
#error cpstm8 printf.c:320(17) redeclared external buf
#error cpstm8 printf.c:320(19+5) missing {
#error cpstm8 printf.c:320(94+2) invalid initializer expression
#warning cpstm8 printf.c:321(6+5) implicit int type in global declaration
#error cpstm8 printf.c:321(19) missing ;
#error cpstm8 printf.c:322(54) incomplete declaration
#error cpstm8 printf.c:325(107) incomplete declaration
#error cpstm8 printf.c:334(151) incomplete declaration
#error cpstm8 printf.c:350(19) missing prototype
#error cpstm8 printf.c:352(19) missing prototype
#error cpstm8 printf.c:354(19) missing prototype
#error cpstm8 printf.c:360(16) missing prototype
#error cpstm8 printf.c:367(2+5) misplaced local declaration
#error cpstm8 printf.c:383(2+3) misplaced local declaration
#error cpstm8 printf.c:384(2+6) misplaced local declaration
#error cpstm8 printf.c:385(2+8) misplaced local declaration
#error cpstm8 printf.c:461(17) missing prototype
#error cpstm8 printf.c:386(15+4) frac undefined
#error cpstm8 printf.c:386(9+3) tmp undefined
#error cpstm8 printf.c:369(4+8) negative undefined
#error cpstm8 printf.c:393(8+5) whole undefined
#error cpstm8 printf.c:404(27+5) whole undefined
#error cpstm8 printf.c:433(30+5) whole undefined
#error cpstm8 printf.c:441(18+8) negative undefined
#error cpstm8 printf.c:450(8+8) negative undefined
#error cpstm8 printf.c:475(2+5) misplaced local declaration
#error cpstm8 printf.c:487(2+5) misplaced local declaration
#error cpstm8 printf.c:489(4+6) misplaced local declaration
#warning cpstm8 printf.c:490(2) missing explicit return
#error cpstm8 printf.c:476(6+8) negative undefined
#warning cpstm8 printf.c:490(4+4) implicit int type in global declaration
#warning cpstm8 printf.c:492(2+4) implicit int type in global declaration
#error cpstm8 printf.c:493(25) bad struct/union operand
#warning cpstm8 printf.c:493(30+3) shift count out of range
#error cpstm8 printf.c:493(48+4) invalid initializer expression
#warning cpstm8 printf.c:494(2+4) implicit int type in global declaration
#error cpstm8 printf.c:494 bad integer constant
#error cpstm8 printf.c:494 bad integer constant
#error cpstm8 printf.c:496(72) bad struct/union operand
#error cpstm8 printf.c:496(100) invalid initializer expression
#warning cpstm8 printf.c:498(2+4) implicit int type in global declaration
#error cpstm8 printf.c:498(7) redeclared external exp2
#error cpstm8 printf.c:498(47) invalid initializer expression
#error cpstm8 printf.c:499(56+18) invalid initializer expression
#error cpstm8 printf.c:500(24) invalid initializer expression
#warning cpstm8 printf.c:501(2+4) implicit int type in global declaration
#warning cpstm8 printf.c:503(2+4) implicit int type in global declaration
#error cpstm8 printf.c:503(68) missing ;
#error cpstm8 printf.c:506(12) incomplete declaration
#warning cpstm8 printf.c:507(4+4) implicit int type in global declaration
#error cpstm8 printf.c:507(16) missing ;
#error cpstm8 printf.c:511(71) incomplete declaration
#error cpstm8 printf.c:518(49) incomplete declaration
#error cpstm8 printf.c:521(16) incomplete declaration
#error cpstm8 printf.c:523(30) incomplete declaration
#warning cpstm8 printf.c:525(6+8) implicit int type in global declaration
#warning cpstm8 printf.c:526(6+6) implicit int type in global declaration
#error cpstm8 printf.c:526(15) redeclared external expval
#error cpstm8 printf.c:526(18) missing ;
#error cpstm8 printf.c:531(14) incomplete declaration
#error cpstm8 printf.c:537(29) incomplete declaration
#error cpstm8 printf.c:540(22) incomplete declaration
#error cpstm8 printf.c:543(15) incomplete declaration
#error cpstm8 printf.c:547(15) incomplete declaration
#error cpstm8 printf.c:552(19) incomplete declaration
#error cpstm8 printf.c:556(30) incomplete declaration
#warning cpstm8 printf.c:557(2+3) implicit int type in global declaration
#error cpstm8 printf.c:557(14+3) incompatible argument type
#error cpstm8 printf.c:557(19+6) incompatible argument type
#error cpstm8 printf.c:557(105) invalid initializer expression
#error cpstm8 printf.c:557(106) missing ;
#error cpstm8 printf.c:562(69) incomplete declaration
#warning cpstm8 printf.c:564(4+3) implicit int type in global declaration
#error cpstm8 printf.c:564(8) redeclared external idx
#error cpstm8 printf.c:564(20) missing prototype
#error cpstm8 printf.c:564(137) invalid initializer expression
#error cpstm8 printf.c:564(138) missing ;
#error cpstm8 printf.c:567(69) incomplete declaration
#error cpstm8 printf.c:570(12) incomplete declaration
#error cpstm8 printf.c:579(41) incomplete declaration
#error cpstm8 printf.c:580(9+3) redeclared external idx
#error cpstm8 printf.c:580(17) missing ;
#error cpstm8 printf.c:584(19) incomplete declaration
#error cpstm8 printf.c:592(41) incomplete declaration
#warning cpstm8 printf.c:593(6+6) implicit int type in global declaration
#error cpstm8 printf.c:593(14) missing ;
#error cpstm8 printf.c:594(14) incomplete declaration
#error cpstm8 printf.c:598(14) incomplete declaration
#error cpstm8 printf.c:602(14) incomplete declaration
#error cpstm8 printf.c:605(40) incomplete declaration
#warning cpstm8 printf.c:605(42+6) implicit int type in global declaration
#warning cpstm8 printf.c:605(52) implicit int type in global declaration
#error cpstm8 printf.c:605(58) missing ;
#error cpstm8 printf.c:605(65) incomplete declaration
#error cpstm8 printf.c:606(37) incomplete declaration
#warning cpstm8 printf.c:606(42+6) implicit int type in global declaration
#warning cpstm8 printf.c:606(52) implicit int type in global declaration
#error cpstm8 printf.c:606(54) redeclared external n
#error cpstm8 printf.c:606(58) missing ;
#error cpstm8 printf.c:606(65) incomplete declaration
#error cpstm8 printf.c:607(37) incomplete declaration
#warning cpstm8 printf.c:607(42+6) implicit int type in global declaration
#warning cpstm8 printf.c:607(52) implicit int type in global declaration
#error cpstm8 printf.c:607(54) redeclared external n
#error cpstm8 printf.c:607(58) missing ;
#error cpstm8 printf.c:607(65) incomplete declaration
#error cpstm8 printf.c:608(38) incomplete declaration
#warning cpstm8 printf.c:608(42+6) implicit int type in global declaration
#warning cpstm8 printf.c:608(52) implicit int type in global declaration
#error cpstm8 printf.c:608(54) redeclared external n
#error cpstm8 printf.c:608(58) missing ;
#error cpstm8 printf.c:608(65) incomplete declaration
#error cpstm8 printf.c:609(37) incomplete declaration
#warning cpstm8 printf.c:609(42+6) implicit int type in global declaration
#warning cpstm8 printf.c:609(52) implicit int type in global declaration
#error cpstm8 printf.c:609(54) redeclared external n
#error cpstm8 printf.c:609(58) missing ;
#error cpstm8 printf.c:609(65) incomplete declaration
#error cpstm8 printf.c:610(58) incomplete declaration
#error cpstm8 printf.c:610(65) incomplete declaration
#error cpstm8 printf.c:612(15) incomplete declaration
#warning cpstm8 printf.c:615(4+5) implicit int type in global declaration
#error cpstm8 printf.c:615(14) missing ;
#error cpstm8 printf.c:617(28) incomplete declaration
#error cpstm8 printf.c:620(35) incomplete declaration
#error cpstm8 printf.c:622(27) incomplete declaration
#warning cpstm8 printf.c:623(8+5) implicit int type in global declaration
#error cpstm8 printf.c:623(14) redeclared external width
#error cpstm8 printf.c:623(31) invalid initializer expression
#error cpstm8 printf.c:623(32) missing ;
#error cpstm8 printf.c:626(31) incomplete declaration
#error cpstm8 printf.c:628(14) incomplete declaration
#error cpstm8 printf.c:632(18) incomplete declaration
#error cpstm8 printf.c:634(30) incomplete declaration
#warning cpstm8 printf.c:635(6+6) implicit int type in global declaration
#error cpstm8 printf.c:635(14) missing ;
#error cpstm8 printf.c:637(34) incomplete declaration
#error cpstm8 printf.c:640(45) incomplete declaration
#warning cpstm8 printf.c:641(8+9) implicit int type in global declaration
#error cpstm8 printf.c:641(52+2) invalid initializer expression
#warning cpstm8 printf.c:642(8+6) implicit int type in global declaration
#error cpstm8 printf.c:642(16) missing ;
#error cpstm8 printf.c:649(27) incomplete declaration
#warning cpstm8 printf.c:650(8+6) implicit int type in global declaration
#error cpstm8 printf.c:650(16) missing ;
#error cpstm8 printf.c:652(34) incomplete declaration
#warning cpstm8 printf.c:653(10+6) implicit int type in global declaration
#error cpstm8 printf.c:653(18) missing ;
#error cpstm8 printf.c:655(13) incomplete declaration
#error cpstm8 printf.c:657(28) incomplete declaration
#warning cpstm8 printf.c:658(8+6) implicit int type in global declaration
#error cpstm8 printf.c:658(16) missing ;
#error cpstm8 printf.c:660(29) incomplete declaration
#warning cpstm8 printf.c:661(10+6) implicit int type in global declaration
#error cpstm8 printf.c:661(18) missing ;
#error cpstm8 printf.c:663(13) incomplete declaration
#error cpstm8 printf.c:666(83) incomplete declaration
#warning cpstm8 printf.c:667(8+6) implicit int type in global declaration
#error cpstm8 printf.c:667(16) missing ;
#error cpstm8 printf.c:668(13) incomplete declaration
#error cpstm8 printf.c:671(82) incomplete declaration
#warning cpstm8 printf.c:672(8+6) implicit int type in global declaration
#error cpstm8 printf.c:672(16) missing ;
#error cpstm8 printf.c:673(13) incomplete declaration
#error cpstm8 printf.c:675(80) incomplete declaration
#warning cpstm8 printf.c:676(8+6) implicit int type in global declaration
#error cpstm8 printf.c:676(16) missing ;
#error cpstm8 printf.c:677(13) incomplete declaration
#error cpstm8 printf.c:679(13) incomplete declaration
#error cpstm8 printf.c:692(25) incomplete declaration
#error cpstm8 printf.c:694(20) incomplete declaration
#error cpstm8 printf.c:697(20) incomplete declaration
#error cpstm8 printf.c:700(20) incomplete declaration
#error cpstm8 printf.c:703(20) incomplete declaration
#warning cpstm8 printf.c:704(10+5) implicit int type in global declaration
#error cpstm8 printf.c:704(30) missing ;
#error cpstm8 printf.c:708(34) incomplete declaration
#error cpstm8 printf.c:713(46) incomplete declaration
#error cpstm8 printf.c:718(33) incomplete declaration
#error cpstm8 printf.c:726(57) incomplete declaration
#warning cpstm8 printf.c:727(12+3) implicit int type in global declaration
#error cpstm8 printf.c:727(16) redeclared external idx
#error cpstm8 printf.c:727(33) missing prototype
#error cpstm8 printf.c:727(75+4) repeated type specification
#error cpstm8 printf.c:727(153) invalid initializer expression
#error cpstm8 printf.c:727(154) missing ;
#error cpstm8 printf.c:731(47) incomplete declaration
#warning cpstm8 printf.c:732(12+3) implicit int type in global declaration
#error cpstm8 printf.c:732(16) redeclared external idx
#error cpstm8 printf.c:732(28) missing prototype
#error cpstm8 printf.c:732(143) invalid initializer expression
#error cpstm8 printf.c:732(144) missing ;
#error cpstm8 printf.c:735(145) incomplete declaration
#warning cpstm8 printf.c:736(12+3) implicit int type in global declaration
#error cpstm8 printf.c:736(16) redeclared external idx
#error cpstm8 printf.c:736(28) missing prototype
#error cpstm8 printf.c:736(142) invalid initializer expression
#error cpstm8 printf.c:736(143) missing ;
#error cpstm8 printf.c:743(129) incomplete declaration
#error cpstm8 printf.c:747(119) incomplete declaration
#error cpstm8 printf.c:750(199) incomplete declaration
#warning cpstm8 printf.c:751(12+3) implicit int type in global declaration
#error cpstm8 printf.c:751(16) redeclared external idx
#error cpstm8 printf.c:751(28) missing prototype
#error cpstm8 printf.c:751(98) invalid initializer expression
#error cpstm8 printf.c:751(99) missing ;
#error cpstm8 printf.c:754(16) incomplete declaration
#error cpstm8 printf.c:755(13) incomplete declaration
#error cpstm8 printf.c:760(52) incomplete declaration
#warning cpstm8 printf.c:761(8+3) implicit int type in global declaration
#error cpstm8 printf.c:761(12) redeclared external idx
#error cpstm8 printf.c:761(20+3) incompatible argument type
#error cpstm8 printf.c:761(25+6) incompatible argument type
#error cpstm8 printf.c:761(89) invalid initializer expression
#warning cpstm8 printf.c:762(8+6) implicit int type in global declaration
#error cpstm8 printf.c:762(16) missing ;
#error cpstm8 printf.c:763(13) incomplete declaration
#error cpstm8 printf.c:769(72) incomplete declaration
#error cpstm8 printf.c:770(72) incomplete declaration
#warning cpstm8 printf.c:771(8+3) implicit int type in global declaration
#error cpstm8 printf.c:771(12) redeclared external idx
#error cpstm8 printf.c:771(20+3) incompatible argument type
#error cpstm8 printf.c:771(25+6) incompatible argument type
#error cpstm8 printf.c:771(89) invalid initializer expression
#warning cpstm8 printf.c:772(8+6) implicit int type in global declaration
#error cpstm8 printf.c:772(16) missing ;
#error cpstm8 printf.c:773(13) incomplete declaration
#error cpstm8 printf.c:777(27) incomplete declaration
#error cpstm8 printf.c:781(43) incomplete declaration
#error cpstm8 printf.c:785(57) incomplete declaration
#error cpstm8 printf.c:789(43) incomplete declaration
#error cpstm8 printf.c:792(16) incomplete declaration
#error cpstm8 printf.c:793(13) incomplete declaration
#error cpstm8 printf.c:797(41) incomplete declaration
#error cpstm8 printf.c:798(35) missing prototype
#error cpstm8 printf.c:798(73) invalid initializer expression
#error cpstm8 printf.c:798(74) missing ;
#error cpstm8 printf.c:801(45) incomplete declaration
#error cpstm8 printf.c:805(43) incomplete declaration
#error cpstm8 printf.c:810(44) incomplete declaration
#error cpstm8 printf.c:815(43) incomplete declaration
#error cpstm8 printf.c:818(16) incomplete declaration
#error cpstm8 printf.c:819(13) incomplete declaration
#error cpstm8 printf.c:823(34) incomplete declaration
#warning cpstm8 printf.c:824(8+5) implicit int type in global declaration
#error cpstm8 printf.c:826(60+4) repeated type specification
#error cpstm8 printf.c:826(65) missing ;
#error cpstm8 printf.c:828(124) incomplete declaration
#error cpstm8 printf.c:832(136) incomplete declaration
#error cpstm8 printf.c:836(16) incomplete declaration
#error cpstm8 printf.c:837(13) incomplete declaration
#error cpstm8 printf.c:841(39) incomplete declaration
#warning cpstm8 printf.c:842(8+6) implicit int type in global declaration
#error cpstm8 printf.c:842(16) missing ;
#error cpstm8 printf.c:843(13) incomplete declaration
#error cpstm8 printf.c:846(43) incomplete declaration
#warning cpstm8 printf.c:847(8+6) implicit int type in global declaration
#error cpstm8 printf.c:847(16) missing ;
#error cpstm8 printf.c:848(13) incomplete declaration
#error cpstm8 printf.c:853(64) incomplete declaration
#error cpstm8 printf.c:856(17) incomplete declaration
#error cpstm8 printf.c:864(12) incomplete declaration
#error cpstm8 printf.c:865(2) missing )
#error cpstm8 printf.c:866(15) redeclared external buffer
#error cpstm8 printf.c:867(28) missing prototype
#error cpstm8 printf.c:867(70) invalid initializer expression
#warning cpstm8 printf.c:868(2+2) implicit int type in global declaration
#error cpstm8 printf.c:868(12) missing ;
#error cpstm8 printf.c:869(12) incomplete declaration
#error cpstm8 printf.c:875(12) incomplete declaration
#error cpstm8 printf.c:876(2) missing )
#error cpstm8 printf.c:877(16) redeclared external ret
#error cpstm8 printf.c:877(28) missing prototype
#error cpstm8 printf.c:877(72) invalid initializer expression
#warning cpstm8 printf.c:878(2+2) implicit int type in global declaration
#error cpstm8 printf.c:878(12) missing ;
#error cpstm8 printf.c:879(12) incomplete declaration
#error cpstm8 printf.c:885(12) incomplete declaration
#error cpstm8 printf.c:886(2) missing )
#error cpstm8 printf.c:887(16) redeclared external ret
#error cpstm8 printf.c:887(28) missing prototype
#error cpstm8 printf.c:887(67) invalid initializer expression
#warning cpstm8 printf.c:888(2+2) implicit int type in global declaration
#error cpstm8 printf.c:888(12) missing ;
#error cpstm8 printf.c:889(12) incomplete declaration
#error cpstm8 printf.c:895(16) incomplete declaration
#error cpstm8 printf.c:896(62) incomplete declaration
#error cpstm8 printf.c:902(59) incomplete declaration
#error cpstm8 printf.c:908(12) incomplete declaration
#error cpstm8 printf.c:909(2) missing )
#error cpstm8 printf.c:910(43+3) invalid pointer initializer
#error cpstm8 printf.c:910(48+3) invalid pointer initializer
#error cpstm8 printf.c:911(16) redeclared external ret
#error cpstm8 printf.c:911(28) missing prototype
#error cpstm8 printf.c:911(94) invalid initializer expression
#warning cpstm8 printf.c:912(2+2) implicit int type in global declaration
#error cpstm8 printf.c:912(12) missing ;
#error cpstm8 printf.c:913(12) incomplete declaration
#error cpstm8 printf.c:914(0) incomplete declaration
#error cpstm8 printf.c:911(29+8) _out_fct undefined
#error cpstm8 printf.c:910(48+3) arg undefined
#error cpstm8 printf.c:887(50+5) count undefined
#error cpstm8 printf.c:877(29+11) _out_buffer undefined
#error cpstm8 printf.c:867(29+9) _out_char undefined
#error cpstm8 printf.c:798(36) p undefined
#error cpstm8 printf.c:761(46+2) va undefined
#error cpstm8 printf.c:727(124+4) base undefined
#error cpstm8 printf.c:623(31) w undefined
#error cpstm8 printf.c:557(73+6) fwidth undefined
#error cpstm8 printf.c:557(67+4) prec undefined
#error cpstm8 printf.c:557(40+8) negative undefined
#error cpstm8 printf.c:557(32+6) maxlen undefined
#error cpstm8 printf.c:557(19+6) buffer undefined
#error cpstm8 printf.c:557(14+3) out undefined
#error cpstm8 printf.c:295(47+5) flags undefined
#error cpstm8 printf.c:295(19+5) digit undefined
#error cpstm8 printf.c:914 array buf size unknown
printf.c:
The command: "cxstm8 +warn +mods0 +debug -pxp +compact +split -pp -l -iinclude -iC:\Hstm8 -clDebug\ -coDebug\ printf.c" has failed, the returned value is: 1
exit code=1.
printf.o - 320 error(s), 66 warning(s)
The text was updated successfully, but these errors were encountered: