473,569 Members | 2,782 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

why we build a library in c++? how to use that library?

1 New Member
Hi all,

i have build a library in c++.
so, hw to use the function of that.
is thr any need to give the path of header file?
if yes why?
since we can do it without building the library?
Please help me out........

thanks,
Ashutosh
Aug 24 '07 #1
1 1152
sicarie
4,677 Recognized Expert Moderator Specialist
Hi all,

i have build a library in c++.
so, hw to use the function of that.
is thr any need to give the path of header file?
if yes why?
since we can do it without building the library?
Please help me out........

thanks,
Ashutosh
You don't need to specify the path if the folder in which the library resides in is in your Classpath, because that is the list of places the computer will automatically check. If you create a library, and it exists in your user directory and your user directory is not in your classpath, then you do need to specify the location.
Aug 24 '07 #2

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

Similar topics

5
3360
by: Koen | last post by:
Hi! I have a question about building and then using libraries containing C++ code. Let's say I have some C++ code and a .cpp file with 1 function that uses some other C++ code / classes etc... Also, any possible exception is handled within the function itself. In code:
0
276
by: Lee Gillie | last post by:
We have systems built upon shared libraries, which are maintained by a group of programmers. We install these to the GAC on production servers. For saftey, when a programmer uses one of these libraries in a project they will GET-LAST-VERSION from SourceSafe, and build the library. With version as "1.0.*", and new numbers are assigned during...
5
1862
by: PengYu.UT | last post by:
Hi, I know I can use "export" to compile library from the source code using templates. But I don't exactly know how to do it. Would you please give me some hint? Best wishes, Peng
4
2595
by: s.subbarayan | last post by:
Dear all, How different is a header file from a library file in C?Under what circumstance u go for library and under what circumstance u go for header?Afaik,both have some declarations which can be called from a source file.And what should I do if i want to build a library?Is it that jus setting the compiler option to be library makes u to...
3
1537
by: Chuck Conlow | last post by:
Greetings. I'm using the Personal (I think that's what it's called) edition of VS C# and I want to build a .dll, which is not an option presented in the IDE. I *think* I can build one from the command line, but am unsure of the syntax. Any pointers? Assume only one .cs file (library.cs). Thanks for any help!
2
1410
by: babyx | last post by:
The release build class library can only work with msvcr71d.dll and msvcp71d.dll exist. How to make this class library work on any machine without using the debug dlls? What are the project settings that i need to take note so that it will become a "real" release build without depending on the debug dll? Can anybody help? Posted Via...
2
1380
by: bluesky | last post by:
Hi All, I am new to javascript and intend to build a custom library. After saving independent files which contain separate functions, how does one build the library? Any help is a great help!! Thanks in advance Thanks ananth
6
1706
by: ivan.leben | last post by:
Hi! I know this question is more suitable for gnu.utils group but im posting here, since that group looks almost dead (last post 1 May with no reply yet) and I need the answer much faster. I am going to release an ANSI C library soon but I am still confused about the automake package design I should use. The main trouble is that I am...
1
1738
by: =?gb2312?B?wfXquw==?= | last post by:
Hi, folks, I've googled for the forum focusing on how to write the makefile, nothing found. So I'd like to ask you guys do me a favor. I am building a static library under Msys and MinGW, I've found all the source files I need, and put them into one folder, my makefile looks like: CC=g++ CCFLAGS=-w -g
1
7672
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7968
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6283
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.