Forum Discussion
Altera_Forum
Honored Contributor
9 years agoProblem is resolved but the cause of problem remains obscure.
I changed extension of the file where function1 is defined ... from .c to .cpp. And it worked ... perhaps because the main source file (i.e. where is main function) is .cpp. Apparently, the g++ linker "doesn't like" mixing .c and .cpp sources.