knmaheshy2k
Member level 1
Hey guys, i've a C code which is working perfectly fine on my P4.. I need to convert/use the code with PIC16f877.. Pls let me know the procedure.. little urgent it is.. pls help...
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
The code code compiles properly if i remove the extern key word.. is it ok??jhbbunch said:what EXTERN means, it is your promise to the compiler that the variable will be found at some time in compilation, in the meantime the compiler, knowing the storage sixe of the variable, will just leave holes in the code where that variable is referenced and pass that list of holes to the linker which will fill the holes in. Except the varivable is never found, so when the compiler passes off all the object files to the linker which will put in addresses of variables and function and other stuff as needed, there is a varibable that is missing and the linker chokes on it.
I've only one source file.. I removed extern key word n now its compiling properly.. hope it works also properly...jhbbunch said:Are all of the source files included in the project?
all the functions used are included in the same file.. there are no other files... i removed extern and compiled n it compiled properly.. if it compiles properly can i be assured that the program works properly?????VSMVDD said:the source is looking for a static library .lib
or another class where these functions are...
the extern is telling the compiler
it has to use external function to that code class
so removing extern wont help you
you need also the functions sources or .lib etc