Hello,
Yesterday, I have installed SDCC (sdcc-2.5.0-setup.exe) in my computer (in a path without empty space) and accepted to put the bin path into the system PATH. After, I have made an autodetect with C::B SVN rev1447 (therion binary). I have had to change some paths as they were set false, but if not all was fine.
I have created a new "hello world" project by using the given template (I have chosen C files) and compiled. At the beginning, I had some troubles. The project seemed to compile fine, but not all files were generated and no .exe (it is needed by SDCC :??). Anyway, there was a warning saying that there was nothing to do with main.o file ( :?). I have therefore read the SDCC documentation and tried to compile the main.c without C::B (i.e., sdcc --out-fmt-ihx main.c). It worked fine and all the files were generated (no .exe anyway). Then I have checked which command used C::B and tried directly with the sdcc compiler. The C::B command seemed to be not correct as I got as output how to compile using sdcc, i.e., sddc [options] filename (and a list of several options).
Today, I wanted to report this, but when I tried, it worked
. Well, quite. If I check the compiler option for the ihx file generation, I get:
--------------------------------------------------------------------------------
Project : TestSDCC
Compiler : SDCC Compiler
--------------------------------------------------------------------------------
Switching to target: default
sdcc.exe --out-fmt-ihx --out-fmt-ihx -IC:\Programme\Resource\C++\SDCCC\include -c C:\Programme\DANAE\CodeBlocks\TestSDCC\TestSDCC\main.c -o .objs\main.rel
sdcc.exe -LC:\Programme\Resource\C++\SDCCC\lib -o TestSDCC.exe --out-fmt-ihx --out-fmt-ihx .objs\main.rel
?ASlink-Warning-Undefined Global '_putchar' referenced by module 'vprintf'
Process terminated with status 1 (0 minutes, 5 seconds)
0 errors, 1 warnings
and if I not check it:
Switching to target: default
sdcc.exe --out-fmt-ihx -IC:\Programme\Resource\C++\SDCCC\include -c C:\Programme\DANAE\CodeBlocks\TestSDCC\TestSDCC\main.c -o .objs\main.rel
sdcc.exe -LC:\Programme\Resource\C++\SDCCC\lib -o TestSDCC.exe --out-fmt-ihx .objs\main.rel
?ASlink-Warning-Undefined Global '_putchar' referenced by module 'vprintf'
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 1 warnings
Remark: I also get that warning by using the sdcc compiler directly.
Actually, C::B generates a .exe file, but of course it is not possible to use it with my CPU (I tried :wink: and got a CPU instruction error). The only negative point is that no .ihx file is generated (in both cases)
.
Anyway, I did not have any problem with the standard headers files.
Best wishes,
Michael