Returning to the problem.

Well, now I compiled the last piklab and create a correct 18F24K22 project.

I tried to compile the example at Standard I/O Streams of SDCC guide.

#include <pic18fregs.h>  
#include <stdio.h>  
    PORTA = c;    /* dump character c to PORTA */
void main(void)
    stdout = STREAM_USER;    /* this is not necessary, since stdout points
                              * by default to STREAM_USER */
    printf (''This is a printf test\n'');

Unfortunately, at the linking time, I have:

sdcc --use-non-free -mpic16 -p18f24k22 -V --debug -Wl-c -Wl-m -I/home/sysop/games/impc2/impc2-sdcc.X/ -oimpc2.hex board.o globalvars.o isr.o main.o -llibio18f24k22.lib 

using default linker script "/usr/local/share/gputils/lkr/18f24k22.lkr" 

missing definition for symbol "_stdout", required by "main.o" 

missing definition for symbol "_printf", required by "main.o"

+ "/usr/local/bin/gplink" -I"/usr/local/bin/../share/sdcc/lib/pic16" -I"/usr/local/share/sdcc/lib/pic16" -I"/usr/local/bin/../share/sdcc/non-free/lib/pic16" -I"/usr/local/share/sdcc/non-free/lib/pic16" -c -m -w -r -o "impc2.hex" "board.o" "globalvars.o" "isr.o" "main.o" crt0i.o "libio18f24k22.lib" "libdev18f24k22.lib" "libsdcc.lib"  

+ "/usr/local/bin/gplink" -I"/usr/local/bin/../share/sdcc/lib/pic16" -I"/usr/local/share/sdcc/lib/pic16" -I"/usr/local/bin/../share/sdcc/non-free/lib/pic16" -I"/usr/local/share/sdcc/non-free/lib/pic16" -c -m -w -r -o "impc2.hex" "board.o" "globalvars.o" "isr.o" "main.o" crt0i.o "libio18f24k22.lib" "libdev18f24k22.lib" "libsdcc.lib" returned errorcode 256 

*** Exited with status: 1 *** 

Please see that I mentioned -llibio18f24k22.lib

I tried to make the project to 18F2420 with no success.

Why this is not linking with the lib correctly?
Or is there some problem inside the library? Since there are no errors to find libraries files.


PS. Sébastien, I installed CodeBlocks, seems very good, but I'm not able to use it right now, and my problem is something wrong using sdcc linking. So, I'll comment about it in the future. Merci beaucoup.