473,404 Members | 2,137 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,404 software developers and data experts.

trying to compile my first libraries

I'm new to c++ and I'm trying to understand how libraries work with c+
+.
I have a project (opencv, but this question is not opencv specific)
with a folder for each library, and in each folder two folders
"include" with headers and "code" with some headers and .cpp files.
Furthermore there are two folders outside "bin" with .dll files and
"lib" with .lib files.

What I want to do is to produce .lib and .dll files by myself using my
IDE (codeblock, but not necessary), so that I can modify the source
code if I want.

If I choose a shared library or a dynamic library project and take all
the files in a source folder in my project, compile and link them I
get, in both case, two files: cxcore100.dll (980 Kb) and cxcore.a
(607Kb).
The original files were cxcore100.dll (989 Kb) and cxcore.lib (80Kb).

Why the second file is much bigger, do I be wrong somewere?

Giuseppe
Sep 14 '08 #1
4 1450
GiuseppeDini wrote:
I'm new to c++ and I'm trying to understand how libraries work with c+
+.
I have a project (opencv, but this question is not opencv specific)
with a folder for each library, and in each folder two folders
"include" with headers and "code" with some headers and .cpp files.
Furthermore there are two folders outside "bin" with .dll files and
"lib" with .lib files.

What I want to do is to produce .lib and .dll files by myself using my
IDE (codeblock, but not necessary), so that I can modify the source
code if I want.
It looks like you have a windows question rather than a C++ one, try a
windows programming group.

--
Ian Collins.
Sep 14 '08 #2
On 14 Set, 10:49, Ian Collins <ian-n...@hotmail.comwrote:
GiuseppeDini wrote:
I'm new to c++ and I'm trying to understand how libraries work with c+
+.
I have a project (opencv, but this question is not opencv specific)
with a folder for each library, and in each folder two folders
"include" with headers and "code" with some headers and .cpp files.
Furthermore there are two folders outside "bin" with .dll files and
"lib" with .lib files.
What I want to do is to produce .lib and .dll files by myself using my
IDE (codeblock, but not necessary), so that I can modify the source
code if I want.

It looks like you have a windows question rather than a C++ one, try a
windows programming group.
The way libraries are compiled, linked and referred is so different
between windows and linux?
I think the situation if I did the same things on a different OS would
be the same.

Giuseppe
Sep 14 '08 #3
GiuseppeDini wrote:
On 14 Set, 10:49, Ian Collins <ian-n...@hotmail.comwrote:
>GiuseppeDini wrote:
>>I'm new to c++ and I'm trying to understand how libraries work with c+
+.
I have a project (opencv, but this question is not opencv specific)
with a folder for each library, and in each folder two folders
"include" with headers and "code" with some headers and .cpp files.
Furthermore there are two folders outside "bin" with .dll files and
"lib" with .lib files.
What I want to do is to produce .lib and .dll files by myself using my
IDE (codeblock, but not necessary), so that I can modify the source
code if I want.
It looks like you have a windows question rather than a C++ one, try a
windows programming group.

The way libraries are compiled, linked and referred is so different
between windows and linux?
I think the situation if I did the same things on a different OS would
be the same.
Unix/Linux dose not have .dll or .lib files. They have static (.a) and
dynamic (.so) libraries.

How they are built is both platform and tool specific.

This group is for C++ language questions. Questions about tools are
best directed at platform or tool specific groups, you will get better
help there.

--
Ian Collins.
Sep 14 '08 #4
On Sun, 14 Sep 2008, GiuseppeDini wrote:
The way libraries are compiled, linked and referred is so different
between windows and linux?
I think the situation if I did the same things on a different OS would
be the same.

Giuseppe
Your question is not C++ specific. The answer depends on the platform you
are using. So, you should ask your question in a newsgroup related to the
platform you are using.

Sincerely,
Peter Jansson
Sep 14 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jeremy Fincher | last post by:
I'm having problems compiling Python with socket support (and support for several other libraries) on Solaris 7. When I do the standard ./configure, make, make install dance, I got a fully...
12
by: jrefactors | last post by:
If the C programs have UNIX system calls such as fork(), alarm(), etc.., we should call it UNIX programs, not traditional C programs? We couldn't compile the programs with system calls using VC++...
10
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
11
by: babuyama | last post by:
Hi, Is there a way to obtain library name at compile/preprocessor time? Assuming that the compilation unit, myfile.c is part of mylib.a, from myfile.c code at compile/preprocessor time, I would...
0
by: Taran | last post by:
I am having this issue with both Visual C++ 6.0 and Visual Studio 2005 Beta 2. I have the SDK and DDK installed. I am trying to write a program to retrieve the EDID for a specific monitor in a...
1
by: PangFromChina | last post by:
Platform:window 2000 professional, VC++6.0 +SP5 STLport: STLport 5.0.2 While test STLport following "STLport README for Microsoft Visual C++ compilers." of README.msvc(readme.txt), there is a...
0
by: Jérôme Le Bougeant | last post by:
Hello (and sorry for my English), I downloaded the VideoCapture module on the http://videocapture.sourceforge.net/ site. I tested it with a webcam and that functions. Now I want to...
14
by: dba_222 | last post by:
Dear experts, Again, sorry to bother you again with such a seemingly dumb question, but I'm having some really mysterious results here. ie. Create procedure the_test As
30
by: David T. Ashley | last post by:
I have a large project on a Linux box that may eventually have several hundred 'C' source files, which need to be compiled and linked into several executables. Not all of the executables will...
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: 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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.