User Tools

Site Tools


multiple_.c_files

Multiple .c files

-using main.c and foo.c

  • Using #include “foo.c” within main.c did work.
  • The below makefile did not work
      LEVEL = ..
      LINK = 1
      include $(LEVEL)/Makefile.common
   

Comment:

I tried this and it doesn't work either for me. If you create a .h file that gives a function prototype for foo.c and include it in both, it will work. That probably shouldn't be necessary though.

- Victor Zhang

multiple_.c_files.txt · Last modified: 2012/05/10 07:54 by zhangvi1