473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

How to create a library in C++

How do I create my own library in C++?
Nov 15 '08 #1
4 2096
Banfa
9,065 Expert Mod 8TB
That depends entirely on the platform you are using.
Nov 15 '08 #2
weaknessforcats
9,208 Expert Mod 8TB
In the case of Windows where you might be using Visual Studio.NET, you create a WIN32 project and whenthe wizard appears, select Application Settings. In that dialog, check static library. Then click Finish.

Your project build result will be a .lib file.
Nov 16 '08 #3
In the case of Windows where you might be using Visual Studio.NET, you create a WIN32 project and whenthe wizard appears, select Application Settings. In that dialog, check static library. Then click Finish.

Your project build result will be a .lib file.
I'm sorry, I haven't a clue what you're talking about. All I want is to create a library in C++ V5.02. If you know how can you explain it step by step?
And I am using windows.
Nov 16 '08 #4
Banfa
9,065 Expert Mod 8TB
Do you mean Visual C++ v5.02 ? (Or may be Borland C++ v5.02). There are no google hits on Microsoft C++ V5.02.

In the case of Visual C++ it is as weaknessforcats stated, when you create a project you need to look for the "static library" project type, then you will create a project that produces a library (.lib)

If you are using the command line then there is a switch to the linker that instructs it to create a library (.lib) rather than an executable, for your version I believe you should be using either the command lines
link32 -lib <arguments>
or
lib32 <arguments>
Since Visual Studio 2005 this has become
lib <arguments>
Nov 16 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Mr. B | last post by:
I've an application in which I use to check out the date/time stamp of a data base... and if I find that it has been updated, my application runs and does a particular update. Currently I fire...
9
by: Amadrias | last post by:
Hi, In one of my current projects, I am willing to create a secure zone such as Acronis does in its application to store some confidential information only accessible to the current machine...
11
by: Mr. B | last post by:
I've an application in which I use to check out the date/time stamp of a data base... and if I find that it has been updated, my application runs and does a particular update. Currently I fire...
11
by: Amadrias | last post by:
Hi, In one of my current projects, I am willing to create a secure zone such as Acronis does in its application to store some confidential information only accessible to the current machine...
1
by: yaarnick | last post by:
Create a linked list data structure library to hold strings. Then library should support the following linked list operations. Create() – Creates the linked list Insert() – Insert a string into the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.