Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
hex output and stdio.h header
Michael:
I have read the following on the SDCC website:
--- Quote ---SDCC is always under active development. Please consider downloading one of the nightly snapshots if you have run across a bug, or if the above release is more than two months old.
--- End quote ---
May be you can try as the website suggests to download a nightly snapshot and see if this will solve your problems.
Michael
Michael:
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:
--- Quote -----------------------------------------------------------------------------------
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
--- End quote ---
and if I not check it:
--- Quote ---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
--- End quote ---
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
onurakdemir:
what does "in a path without space" ??
sethjackson:
--- Quote from: onurakdemir on December 08, 2005, 01:58:39 am ---what does "in a path without space" ??
--- End quote ---
example
"C:\mypath"
instead of "C:\Program Files"
:)
HTH
Navigation
[0] Message Index
[*] Previous page
Go to full version