Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 27-10-2009
Member
 
Join Date: Jun 2009
Posts: 1,518
Combination of static libraries in a dynamic

I'm working on porting a project from windows to Linux. In this project there is a library containing about 1300 source files, for reasons I will not spread here, I could not generate a dll once, so I was wondering if you could cut this into several static library and then to gather in a dll. In fact I already create static libraries, but when I combine it leaves me an empty dll.

I work under windows so with Visual C++ and Qt 3.
Reply With Quote
  #2  
Old 27-10-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: Combination of static libraries in a dynamic

Well did you exported symbols? (Memory: __declspec (dllexport) or via def file)

I imagine that if you exported nothing, the compiler can possibly remove all your code in your final dll.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #3  
Old 27-10-2009
Member
 
Join Date: Jun 2009
Posts: 1,518
Re: Combination of static libraries in a dynamic

a __declspec (dllexport) is for the dll, so I put this macro to generate my static libraries, but actually I put in the combination .lib

In fact I can create a class to combine all my power .lib and I included a header of one .lib and used a class at the linkage, the linker give me error of symbol not resolved so I wonder if it is possible to do that.
Reply With Quote
  #4  
Old 27-10-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: Combination of static libraries in a dynamic

Yes, it is on, it is possible to make a DLL that incorporates one or more libs, there is no problem from this point of view. After that, it would probably practice that shows you the errors you get and how the symbols are reported missing it said, for example.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Combination of static libraries in a dynamic"
Thread Thread Starter Forum Replies Last Post
Dynamic and Static Polymorphism in Java Ardent Software Development 4 19-08-2010 03:37 PM
Convert your Dynamic IP to Static IP address Larry ward Tips & Tweaks 2 23-04-2010 03:01 AM
Dynamic and static parameters in database spuff Software Development 4 22-02-2010 08:29 PM
Static and Dynamic RAM Harpreet Gaur Motherboard Processor & RAM 5 29-01-2010 02:31 PM
Differences between static and dynamic routes Raffaele Networking & Security 3 21-07-2009 10:54 PM


All times are GMT +5.5. The time now is 03:58 PM.