Code::Blocks

User forums => Using Code::Blocks => Topic started by: vamshi on April 28, 2006, 12:33:20 pm

Title: SDCC and C::B +printf +hex generation
Post by: vamshi on April 28, 2006, 12:33:20 pm
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.


Title: Re: SDCC and C::B +printf +hex generation
Post by: Michael on April 28, 2006, 12:52:54 pm
Hello,

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

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

Best wishes,
Michael