954,498 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Creating own libraries in BCPP Builder

I use Borland C++ Builder ver 5 - and always want to make stand alone exes.

I now wish to create and use my own libraries.

I made a simple .cpp, ran "bcc32 -c mycode.cpp" to create mycode.obj, then ran "tlib
mylib +mycode" to create mylib.lib.

I created a .h to declare the functions in mylib.lib, and included that in another .cpp.

I treid to add to the Library path in Project Options - Directories/Conditionals - Directories, but it would not accept any changes. After I add to tht Library path - I can go back and look - and it's back to the original.

What else am I missing ?

eng51
Newbie Poster
3 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

Would you mind using Code::Blocks or gcc instead? And are you trying to create a static or dynamic or shared library?

Tellalca
Posting Whiz in Training
209 posts since Mar 2010
Reputation Points: 29
Solved Threads: 24
 
Would you mind using Code::Blocks or gcc instead? And are you trying to create a static or dynamic or shared library?

Code::Blocks ?

Use GCC - WHY ? I use C++ Builder.

And static dynamic shared. ? I want to use libraries to avoid duplicating code over and over again in stand alone executables. I guess shared static. As I come up with new code, I'd add to the library. So dynamic as well.

eng51
Newbie Poster
3 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You