Re: [Dev-C++] Adding my own Lib files to Project
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Napoleon A. <nah...@so...> - 2002-08-27 13:58:11
|
Hello Elizabeth, I have tried your solution without success. I think it's me doing something wrong so I will elaborate my problem below exactly as it is then may be you can point me in the right direction. I have 3 main paths I'm dealing with they are: (1)C:\Projects\Windows, (2)C:\Projects\Windows\Lib, and (3)C:\Projects\Resources. Path 1 contains the files Main.cpp,Ctrl.cpp,Ctrl.h, View.h. Path 2 contains the files Maker.cpp, Maker.h, Window.h, Procedure.cpp, Procedure.h, Class.cpp, Class.h, Icon.cpp, Icon.h, Control.h and Canvas.h Path 3 contains Main.Ico, Script.rc, Resource.h This is the way I tried to biuld the library. I created a DLL project and added all the files from path 2 to it as they are. But I get loads of error messaged when I compile. The need to create a personal libary I guess becomes inevitable with time. as it becomes obvious that certain classes and functions lend themselves to reuse. If any one can write a little tutorial on how to build such a library It will be much appreciated. Up untill now I have only written programs with all the files in one directory but now I feel the need to start writting libraries. Thanks to anyone who will help. Napoleon. |