Did you add extra.c to your project or compile line? You have a linker error telling you the linker could not find the function implementation.
By the way your header should have include guards and there is probably no need for the extern qualifier for the function. You also don't need to #include the <stdio.h> include file in the header or extra.c.
i found the the mistake. it was very silly actually. i thought extra.c will automatically get compiled like a normal .h header file but i also had to compile extra.c and now it works. thankyou jlb