cancel
Showing results for 
Search instead for 
Did you mean: 

undefined reference to a function

bbas121
Associate

Ive have a probelm with a specific funtion in my main

bbas121_0-1739127023793.png

ive included the source files

bbas121_1-1739127057061.png

ive tried to include the file in the includes

bbas121_2-1739127174140.png

but still i got the message 
when i press open declaration is show me the function declaration in the header

bbas121_3-1739127379657.png

 

and in the c file

bbas121_4-1739127400062.png

ive copied the files from an example project ive tried to compare the include path and didt find a solution what could be the problem



3 REPLIES 3
KnarfB
Principal III

You are showing a linker error. So the .c file needs to be added to the sources.

Include path is used for compiling, not linking.

hth

KnarfB   

so what should be the solution I'm still a little confused.

you need to add it to source files, not just includes, it it shows up in the project explorer right click properties and make sure the file is included in the build process.

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.