QUOTE(BryGuy638 @ 3 Jan, 2008 - 04:45 PM)

Alright, so, I've been doing quite a bit of coding for a research project that I'm working on. It's fairly complex, and has a lot of separate parts that all feed together in the end, so I have two different files. One is written in C++ (made serial communication easier) and one is in C (allowed me to use a helpful API).
I am compiling with GNU Compiler Collection under Ubuntu 7.10 (Gutsy Gibbon). I can send the calls that I use to compile them separately, the server is giving me some problems right now...
I would like to rewrite these files so that they do the processing and return values to a main class (still needs to be written), but I don't know how I would compile this. Is it as simple as simply using the include tag, or is there more work involved. Is it even possible to do what I want, or do I need to keep these sources as separate programs? I can provide the code that I currently have for each part if it would be of use, and am more than willing to answer any questions. Thanks for your help.
Bryan
it depends on what you are doing you could just call bolth of them a .cpp.
or you can compile them seperetly and link them.
this is not somthing i am comfortible giving advice on so good luk and im sorry i cant realy help much.
there are a bunch of sites on google you could try.maby they will help and maby not.
all i typed in is linking c to c++ and some look promising.
This post has been edited by Jingle: 3 Jan, 2008 - 06:56 PM