Re: [Dev-C++] Adding my own Lib files to Project
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Abhijit S. <mu...@gm...> - 2002-08-26 17:24:07
|
> Hello, > How do I go about adding my own library files that to a project I'm > working on. I have some files which I think are general enough that I put > them in C:\***\lib. In order to add these files to a project I have the > appropriate include statements. and added the path to the library to > Project\Project Options\Files.Directories. I get the following Linker > error: > > C/CppLab/Winnie/main.cpp:21: undefined reference to > `Win::ClassMaker::ClassMaker(char const *, HINSTANCE__ *)' > C/CppLab/Winnie/main.cpp:23: undefined reference to > `Win::Maker::Maker(char > const *, HINSTANCE__ *)' > C/CppLab/Winnie/main.cpp:25: undefined reference to > `Win::Maker::Create(Win::Controller &, char const *)' > > I also added the path to Tools\Compiler Options\Directories which also > gives me the same error message. When I copy all the files into the same > directory It compiles without errors. What am I doing wrong ? > > Napoleon. I think you're getting confused between libraries and header files. Copy these files to `c:\***\include'. They should work. A reply explaining all this was posted by Elizabeth, but it seems to have missed you, so I'm sending this to your account directly also. ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |