Forum Discussion
Altera_Forum
Honored Contributor
15 years agoIt sounds like you're probably creating your Include paths correctly. 'Undefined reference to main' sounds more like a linker error than a compiler error. Make sure your main.c (or whatever file your main is in) compiles correctly. If it doesn't, you won't have a main.o file and the linker will fail.