multiply defined function


#1

I had mistakenly added a source file that had the same function name as a file already in the project. In this case it was a timer handler (callback) function. Functions with scope limited to a single source file should always be preceeded with the static keyword. But in the case thats missing (my mistake) and more than one function with same name, from the eclipse console:

… Link step in progress …

… Link my_project_256KB.bin …

c:\OpenAT\IDE\MINGW\3.8.0.1\bin\make.exe: *** [make_single_bin] Error 1
Done.

Had to #if 0 functions one-by-one to find the offending.
So, somewhere is missing the linker error message that warns of duplicately defined function.
(Using SDK 4.22a)


#2

Hi klogd,

Did you also look at the log and error files that are geneareted in the link process? I think that what actually is displayed in the console is not always all the information that is available… There should be error files that show the exact error in the build folder.

Best Regards,
Jan