473,387 Members | 1,534 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,387 software developers and data experts.

Make Library

60
Hi Guys,

I want to learn how to make a library out of my .cpp's and .h's file. Can you please give me some reference that I can read
Jun 22 '07 #1
5 1753
DeMan
1,806 1GB
it shoudl depend on compile time arguments.....which compiler (and/or) IDE are you using
Jun 22 '07 #2
seforo
60
I am using GCC(GNU Compiler Collection) on rat hat linux
Jun 22 '07 #3
DeMan
1,806 1GB
To make a static library:

Expand|Select|Wrap|Line Numbers
  1. gcc -c filetocompile.cpp
  2.  
You will get an object (.o) file.
You can link multiple object files together for your library by using
Expand|Select|Wrap|Line Numbers
  1. gcc -o library_name.a file1.o file2.o
  2.  
Jun 22 '07 #4
Hello,
What type of library do you want to create - static or shared? The following link is a good reference:
http://users.actcom.co.il/~choo/lupg/tutorials/libraries/unix-c-libraries.html
http://www.adp-gmbh.ch/cpp/gcc/create_lib.html

Regards,
Jun 23 '07 #5
kky2k
34
Hello,
What type of library do you want to create - static or shared? The following link is a good reference:
http://users.actcom.co.il/~choo/lupg/tutorials/libraries/unix-c-libraries.html
http://www.adp-gmbh.ch/cpp/gcc/create_lib.html

Regards,
very usefull link thanks for that...
Jun 24 '07 #6

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

Similar topics

5
by: Simon | last post by:
Hi all, I'm hoping that someone could help with the following general question: I'm making a website that manages beta releases of software. It does various things like store bugs, comments,...
1
by: jitendar.rawat | last post by:
Hi, I am trying to create a library and want its user to define a function in their executable if that library is linked. some thing like, if some uses my library and haven't defined a function...
1
by: pnr | last post by:
I am makeing a system where every user have there ovn menu, they can chose between about 20 different sides they want in there menu. Eache side contains that menu, the user logs in with username...
1
by: MailYouLike | last post by:
Hi ! i need some help and advice i am using asp.net to make a email application it is complete but just one thing , i want to create a pop account at the mail server from my scripts is...
7
by: Steven Bethard | last post by:
I've updated PEP 359 with a bunch of the recent suggestions. The patch is available at: http://bugs.python.org/1472459 and I've pasted the full text below. I've tried to be more explicit about...
4
by: Chris F Clark | last post by:
Please excuse the length of this post, I am unfortunately long-winded, and don't know how to make my postings more brief. I have a C++ class library (and application generator, called Yacc++(r)...
1
by: SemSem | last post by:
iwant to know if there any way to make awell design forms as ithink .net can offered to me good design tools ineed to kow how idsign an asp well design site and if there techneques are used in...
7
by: John Harrison | last post by:
This is from SGI's FAQ, its the justification for why list<T>::size() is linear time in their library (and in gcc library too since their code is based on SGI) <quote> Why is list<>::size()...
3
by: skneife | last post by:
it seems that it is not possible to make a project Reference from a project class library to a website in the same solution, because the website doesn't contains any assembly (dll). So, if in the...
5
by: puneetsardana88 | last post by:
Hi I tried to make a library using code blocks. For which I went file->new->project->static library and name it as mylib and then i created a file mylib1.c and mylib1.h (with some sample functions...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.