News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

SDCC and C::B +printf +hex generation

Started by vamshi, April 28, 2006, 12:33:20 PM

Previous topic - Next topic

vamshi

Hi All,
When I try to build  (usind sdcc) the following file : main.c
#include<stdio.h>
#include<stdlib.h>

void main(void)
{
    int i;
    i=10;
    printf("%d",i);
}

it shows the full usage of sdcc and at end says :

Special options for the hc08 port:
      --out-fmt-elf         Output executable in ELF format
-:0: warning 119: don't know what to do with file '.objs\main.o'. file extension unsupported
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.5.0 #1020 (May  8 2005) (MINGW32)
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 1 warnings


Can anyone help in tracing out this problem.
How can i generate hex file using C::B?
How to see output of printf(); in C::B?

Thanks in advance.....for ur help..

Regards,
Vamshi.



Michael

Hello,

May be this topic could be useful (at least a bit :)):

http://forums.next.codeblocks.org/index.php?topic=1563.0

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]