I have a program written in c++ and compiled with g++. It runs as a console program, stand alone.
I would like to use one of the classes of this compiled exe in another exe I am making. Both are made in the same environment, ie, same PC, same language (ansi C++), and both compiled in with the same compiler (g++ using MinGW).
Is it possible to compile and link an already compiled exe into a new one. It doesn't really have to be compiled in (ie, I don't really mind if its still a seperate program and I need to include both exe's with the distribution, I just want to be able to call a class in the one exe).
The reason I want to link the compiled class and not an object file is because its use may vary. In some instances it will run stand alone and in others it will be called from the second program.
Hope this makes sense...