Bonjour.

Je voudrais realiser une carte d'entrée-sortie avec une liaison USB en m'inspirant d'un montage trouvé sur le net : usb-led-fader_061002
J'ai realisé la carte, programmé le circuit ATMEGA mais je n'arrive pas à compiler/linker le programme PC qui dialogue avec la carte.
J' utilise Code:: block avec un compilateur GCC

je crée un nouveau projet type console application avec le langage C comme selection.
J'enleve le fichier main.C créé à la creation du projet et je met le fichier main.c du projet.
J'ajoute usb.h, channels.h et usbledfader.h.
Et à la compilation, j'obtiens :

||=== Build: Debug in fader (compiler: GNU GCC Compiler) ===|
obj\Debug\main.o||In function `usbGetStringAscii':|
D:\c\main.c|65|undefined reference to `usb_control_msg'|
obj\Debug\main.o||In function `usbOpenDevice':|
D:\c\main.c|110|undefined reference to `usb_init'|
D:\c\main.c|112|undefined reference to `usb_find_busses'|
D:\c\main.c|113|undefined reference to `usb_find_devices'|
D:\c\main.c|114|undefined reference to `usb_get_busses'|
D:\c\main.c|119|undefined reference to `usb_open'|
D:\c\main.c|122|undefined reference to `usb_strerror'|
D:\c\main.c|132|undefined reference to `usb_strerror'|
D:\c\main.c|140|undefined reference to `usb_strerror'|
D:\c\main.c|150|undefined reference to `usb_close'|
obj\Debug\main.o||In function `dev_test':|
D:\c\main.c|183|undefined reference to `usb_control_msg'|
D:\c\main.c|186|undefined reference to `usb_strerror'|
obj\Debug\main.o||In function `dev_set':|
D:\c\main.c|248|undefined reference to `usb_control_msg'|
D:\c\main.c|251|undefined reference to `usb_strerror'|
obj\Debug\main.o||In function `dev_clear':|
D:\c\main.c|275|undefined reference to `usb_control_msg'|
D:\c\main.c|277|undefined reference to `usb_strerror'|
obj\Debug\main.o||In function `dev_status':|
D:\c\main.c|296|undefined reference to `usb_control_msg'|
D:\c\main.c|298|undefined reference to `usb_strerror'|
obj\Debug\main.o||In function `dev_reset':|
D:\c\main.c|339|undefined reference to `usb_control_msg'|
D:\c\main.c|341|undefined reference to `usb_strerror'|
obj\Debug\main.o||In function `main':|
D:\c\main.c|400|undefined reference to `usb_init'|
D:\c\main.c|425|undefined reference to `usb_close'|
||=== Build failed: 22 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

Je modifie la propriete des trois fichiers .h en option compile et link

Et à la compilation, j'obtiens :


-------------- Build: Debug in fader (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -Wall -g  -c D:\c\usb.h -o usb.h.gch
mingw32-g++.exe  -o bin\Debug\fader.exe channels.h.gch obj\Debug\main.o usb.h.gch usbledfader.h.gch   
channels.h.gch: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
J'ai cherché une solution sur le net mais je n'ai pas trouvé grand chose.

Si quelqu'un a une proposition pour me sortir de là, je suis preneur.

Je ne connais pas bien code::blocks et il se pourrait que mon problème provienne d'un mauvais paramétrage du logiciel.