Hi, I'm trying to compile a C source file with a z80 target (list.c in core/lib from
http://www.contiki-os.org/ ). The file is part of a small protothreaded os and if compiled from the command line (msysgit) like this :
$ sdcc -mz80 -ID../../core -c list.c
it outputs all files as expected.
However, when in codeblocks, I right click on the file and choose from the menu 'build file' and after the message 'compiling core\lib\list.c' the help output of sdas assembler appears. I found a similar question in
http://forums.codeblocks.org/index.php?topic=14970.0 but that fix doesn't appear to work for me, if I knew what to do with to begin with.
My setup on a winxpsp3 is as follows
D:\Code\msysgit (with mingw installed, codeblocks doesn't find it automagically but by hand it can be set and works as expected!)
D:\Code\sdcc (SDCC : mcs51/gbz80/z80/z180/r2k/ds390/pic16/pic14/TININative/ds400/hc08 3.1.0 #7066 (Nov 22 2011) (MINGW32))
D:\Code\codeblocks (10.05)
this is part of my .cbp file:
<Build>
<Target title="MSX2 - Debug">
<Option output="bin\Debug\LIBDSK" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="1" />
<Option compiler="sdcc" />
<Compiler>
<Add option="--out-fmt-ihx" />
<Add option="--no-std-crt0" />
<Add option="-mz80" />
<Add option="--debug" />
<Add option="--reserve-regs-iy --std-sdcc99" />
<Add option="-DAUTOSTART_ENABLE" />
<Add directory="platform\native" />
<Add directory="cpu\native" />
<Add directory="core" />
</Compiler>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
</Compiler>
I tried to remove the Compiler option -Wall and restart codeblocks.. but that generates a unhandled exception.
anyone any idea how to fix this, or am i doing something wrong maybe?
cheers,
Johan