473,657 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1473
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.co mwrote:
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.co mwrote:
>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
1777
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 compiled Python without an _socket module. So I uncommented the appropriate socketmodule.c line in Modules/Setup, and recompiled. I get this:
12
3432
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++ compiler. I need to compile it under UNIX platform. correct? any other alternatives?? Please advise. Thanks!!
10
4449
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 Enterplise Linux 3 ES, and applied FixPack fp5_mi00069.tar to it. After creating an instance, starting the database, creating a database, and entering the table definitions, all of which seems to work OK, I entered a tiny 8-row table and can do...
11
387
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 like to know that the library name is "mylib". I could not find an equivalent of __FUNCTION__, __FILE__ defines for getting the library name. Is there another way? Thanks, Babu
0
6989
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 multi-monitor system. I already know how to get this information from the registry, but I wish to get the EDID from the monitor directly. So far I have been unable to compile my program. The compiler generates over 102 errors and 54 warnings,...
1
6318
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 error:NMAKE: fatal error U1077: 'cl': return code '0x2'stop. I can build STLport without any error but a warning, after buiding I test it, a error is appear.
0
2029
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 compile his file .cpp (vidcap.cpp). Thereafter, the idea is to be able to modify the code to include my own modifications.
14
5897
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
3853
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 use all of the files (i.e. there would be no linker references to some symbols). The project will naturally be broken down into several or more subdirectories.
0
8312
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8504
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8606
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6169
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1622
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.