473,545 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

g++: Creating DLL from .a files

Hi everybody:

I have a project with a lot of source files.
Every logical set of source files is compiled and archived in .a files
(using mingw toolchain):
* library.data.a
* library.ui.a
* library.service .a

Now, I want to create a library.dll file from my .a files; how can I do
that?

I have seen that I can create DLLs from .o files, but I did not see any
example about creating DLLs from .a

Thanks in advance

ernesto

Jul 23 '05 #1
4 2907
ernesto wrote:
Hi everybody:

I have a project with a lot of source files.
Every logical set of source files is compiled and archived in .a files
(using mingw toolchain):
* library.data.a
* library.ui.a
* library.service .a

Now, I want to create a library.dll file from my .a files; how can I do
that?

I have seen that I can create DLLs from .o files, but I did not see any
example about creating DLLs from .a

Thanks in advance

ernesto


Platform and implementation specific questions are off topic here.

That said, on most platforms static libraries can be linked to in the
same way as object files. Example :
g++ -o program_name file1.o file2.o library1.a library2.a

So if you already have your problem solved for object files, it
shouldn't be too hard to extend it to libraries.

-Alan
Jul 23 '05 #2
ernesto wrote:
Hi everybody:

I have a project with a lot of source files.
Every logical set of source files is compiled and archived in .a files
(using mingw toolchain):
* library.data.a
* library.ui.a
* library.service .a

Now, I want to create a library.dll file from my .a files; how can I do
that?

I have seen that I can create DLLs from .o files, but I did not see any
example about creating DLLs from .a


If you know how to do it with the .o files, why don't you just extract them
from the archive?

Jul 23 '05 #3

Rolf Magnus wrote:

If you know how to do it with the .o files, why don't you just extract
them
from the archive?
Hi:

I create several .a files with different Makefiles, now, I want to
combine them and create an only DLL file.

Jul 23 '05 #4
On 2005-06-25, ernesto <eb******@gmail .com> wrote:
Hi everybody:

I have a project with a lot of source files.
Every logical set of source files is compiled and archived in .a files
(using mingw toolchain):
* library.data.a
* library.ui.a
* library.service .a

Now, I want to create a library.dll file from my .a files; how can I do
that?

I have seen that I can create DLLs from .o files, but I did not see any
example about creating DLLs from .a

Thanks in advance


Just use the same compile line on the .a files. e.g.
g++ -shared -o libfoo.so x1.a x2.a ...

Cheers,
--
Donovan Rebbechi
http://pegasus.rutgers.edu/~elflord/
Jul 23 '05 #5

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

Similar topics

1
7988
by: dave | last post by:
I first started using HCW.exe to compile .rtf filew created with MS Word a couple of weeks ago. I used the file | new menu then selected New project in the dialog box and everything worked as expected. After this I decided to TRY to start a new project, so I repeated the File | New menu but for some reason HCW.exe wouldn't allow me to...
0
1621
by: Angelos Karantzalis | last post by:
Hi y'all, only recently, I've delved into creating installers with VS.NET. So far, I'd created a Deployment Solution, added a couple of Merge Modules to it & everything worked fine. Today, I read some stuff on MSDN that talked about Windows Installer Patch files, but nowhere did I find any info regarding creating WIP files with VS.NET.
2
2872
by: George Marsaglia | last post by:
I have a set of, say, 2000 points in the 8-dimensional simplex S={(x_1,x_2,...,x_8),x_1+x_2+...+x_8=1, x's>=0}. To help analyze that 8-dimensional set, I wish to project the set of points onto each of the 'faces' {x_i+x_j+x_k=1} for the 56 choices i,j,k, that is, i=1 to 6; j=i+1 to 7; k=j+1 to 8. Finally, use gnuplot to load and plot each of...
9
3044
by: Maziar Aflatoun | last post by:
Hi everyone, I like to export some data from the database and allow my users to store this file to their harddrive as a .txt file. Does anyone know how I would go about doing that? (without creating the actual physical text file on my local drive first). Thank you Maziar A.
4
1730
by: mslyh | last post by:
Is there a way to instantiate a page object in code and redirect the response to it? I know that this is how the actual ASP.NET engine ultimately does it under the covers. However, is this available to the developer? I want to be able to use page inheritance to create a centralized page controler without the need to build .aspx files for every...
12
3141
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without restarting the application. What I did was to create an AppDomain that loaded the plugins and everything was great, until I tried to pass...
15
2792
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. Everything is the default settings I believe. IIS is running under Local System. In IIS the DefaultAppPool is running under Network Service....
1
3471
by: Remote_User | last post by:
Hi All, .NET 1.1 doesn't support creating symbolic links to files, like in Linux? Can i use C# to make a file point to another file? Thanks.
5
5043
by: Aryan | last post by:
Hi, I am using C# with framework 2.0 and creating PDF files on-fly, along with this I am using Windows 2003 Server. I am using Byte to take the data input and then save into pdf format on harddrive location. Now after creating few successful pdf files, I am getting "System.OutOfMemoryException".
0
7499
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7432
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...
0
7943
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...
1
7456
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
7786
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...
1
5359
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...
0
5076
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
3490
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...
1
1044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.