I have a situation. I have some functions in a header file that are declared with extern keyword. I have their definition in a C file. these two files are in the same directory. I made a visual studio project and include the header file. when I use the functions declared in header file. the program gives me linking error (LNK2019). I inserted the path of the directory containing the header and C file in include additional directories. but the problem is still there. How can I resolve this?
Thanks
Thanks to all of you. I found the problem but above answers are also very helpful. the problem was that I was calling those functions which definition was in
.cfile. But I was calling it in my.cppfile. This was the reason for this error. I changed the extension of .cpp file to .c file and now it is working fine. Thnaks