what do you guys use? another ide? maybe I could try it in a fashion that you guys are using to see if it'll work that way.
what do you guys use? another ide? maybe I could try it in a fashion that you guys are using to see if it'll work that way.
I use GCC on the command line, Elysia uses Microsoft Visual Studio, another popular IDE is Code::Blocks.
I used code blocks and the same exact error came up. It's obviously the same problem in both situations. Here's is what I did. I loaded my example.c, avg.c, avgfunc.c and then hit build and run option. It gave me the 'undefined reference to readValue()
You need to add them to a project, otherwise the compiler doesn't know where to find readValue() when it's trying to compile example.c, which is what it's trying to tell you.
The errors are the same because both Dev-C++ and Code::Blocks use GCC (by default).
i am using Dev-C++.i never had done something like the thing you mention but if adding files in a project is what you want to do you could try this : locate project's little icon on the left (not the one under File but the project tree next to the source) and right click on it,then select "Add to Project".a browser comes up and you select the files you want.please keep a copy of what you have done first, since i am not rly sure if it works.
I'm not seeing the add to project file button you are talking about.
Actually I do see it. It's right below the window menu on mine. The problem is that it is not highlighted. I can't click on it. Not even in any of the menus. Any ideas?
Maybe you are in "single file mode"?
You need to make it a project (create a new project and put your code into it).
I made a new project and I was able to add files to the project then. this was it. Thanks for all the help everyone!!