Re: [Dev-C++] implementation .o procedure
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Elizabeth B. <sog...@ya...> - 2002-10-07 04:48:54
|
"Santiago" <sa...@ho...> writes: > Does anyone know how use a compiled class implementation (ie: = > myClass.o)? > The class was defined by someone else. When theygave me the myClass.o = > and it's public functions, I was asked to refer to it by using #include = > "myClass.h" but that didn't work. > Please let me know if you have the correct procedure. If I understand you correctly, the implementation is in myClass.o and the interface is in myClass.h. So, that you do is add myClass.o to the list of object files you use to link. That is, in the code *you* write, you use #include "myClass.h" but the implementation is in myClass.o, so you add myClass.o to the list of files you link with. Elizabeth |