But that'll only work if freidman.c includes declarations for the functions. Otherwise it won't compile because it doesn't know that the functions exist. You can declare them directly or use a header file. The better way is to use a header file. :)
/* ami.h */
I like Visual Studio 2005. There's an Express version that's free, but it takes some getting used to if you haven't used a powerful IDE before. Another good one is Dev-C++, but the IDE is awkward to me. If you like the command line stuff, Borland gives away their 5.5 compiler.
All of them are sold as C++ environments, but they all do C just fine. :)
I tried something called Block::Code but it's so confusing.
Code::Blocks is an IDE like Dev-C++. They both use the same compiler underneath, I think. Starting out, you prolly want something that's easy sqeezy to install. Dev-C++ and Visual C++ 2005 Express are that way, and unless you wanna do some bigtime customization, you can ignore most of the features.
I thought the whole point of linking is so I dont have to do that?
Ya, that's the point, more or less. :) The first thing you should do if possible is ditch the old compiler and get a newer one that's designed for your OS. That way you can error check your methodology without worrying if the compiler isn't playing nicely on your system. ;) Then as a test, do this.
Gather all of your .c files in one directory
Make sure that declarations between .c files are in .h files and the .h files are included in the .c files
Compile and link all at once, but don't compile the .h files: C:\>compiler file1.c file2.c
Or if you get a coolio IDE, just add files to your project and click on the Build button. Mucho easier. :cheesy:
I'm working on getting Visual Studio. I already downloaded the the express version. I'm going to need more time on it to undersatnd how it works exactly.
S.O.S - you're right. I was just being lazy. If there's one thing I need to get used to in order to be succesful in the programming world is to be able to adjust and learn how to ditch the "old" softwares and storm ahead with the new ones, right?
I think once I learn one IDE properly I should be able to find all of them pretty easy to use.
If there's one thing I need to get used to in order to be succesful in the programming world is to be able to adjust and learn how to ditch the "old" softwares and storm ahead with the new ones, right?
Corrrrrrect !!! also to never give up should be one of your qualitites.