I use GCC and I need to Generate DLL file (I can do with shared Library) and archive .a file for linking purposes.
My app need to do dynamic linking so I need .a Is there a way out with CodeLite?
TIA,
M.
Generate DLL/So and its .a file
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Generate DLL/So and its .a file
CodeLite 15.x
CodeLite is awesome, I just Love it!
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Generate DLL/So and its .a file
With gcc (MinGW) you don't need that .a, gcc allows you to link directly to the DLLevstevemd wrote:I use GCC and I need to Generate DLL file (I can do with shared Library) and archive .a file for linking purposes
To generate a DLL simply change the project type to "Dynamic Library" (project settings -> common settings -> general -> Project Type)
In the "Output File" on that page, set the name you want , e.g.
Code: Select all
$(ProjectName).dll
Make sure you have read the HOW TO POST thread
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Generate DLL/So and its .a file
Thats great.eranif wrote:With gcc (MinGW) you don't need that .a, gcc allows you to link directly to the DLLevstevemd wrote:I use GCC and I need to Generate DLL file (I can do with shared Library) and archive .a file for linking purposes
To generate a DLL simply change the project type to "Dynamic Library" (project settings -> common settings -> general -> Project Type)
In the "Output File" on that page, set the name you want , e.g.EranCode: Select all
$(ProjectName).dll
I know already how to generate so/dll and I knew that in Linux you can link .so directly.
I was afraid that I needed .a for windows and thanks for the information!
Thread solved
CodeLite 15.x
CodeLite is awesome, I just Love it!
- Jarod42
- CodeLite Expert
- Posts: 240
- Joined: Wed Sep 30, 2009 5:54 pm
- Genuine User: Yes
- IDE Question: C++
- Location: France
- Contact:
Re: Generate DLL/So and its .a file
You may use the gcc link flag:
Code: Select all
-Wl,--out-implib="outputlib.a"