Error compilation when adding header file

Firmware/software/electronics/mechanics
Post Reply
Droneman
Member
Posts: 35
Joined: Sun Jun 21, 2015 10:58 pm

Error compilation when adding header file

Post by Droneman »

Hello, i added a new header file to the project that contain new function, but when i tried to compile i get this error
"undefined reference to 'commande_drone_initilaze'
please can anyone help me
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Error compilation when adding header file

Post by tobias »

Did you implement the function of it (in the source file)?

You need to add new source files in the Makefile to have them compiled.
Droneman
Member
Posts: 35
Joined: Sun Jun 21, 2015 10:58 pm

Re: Error compilation when adding header file

Post by Droneman »

yes thanks
Post Reply