Results 1 to 4 of 4

Thread: Combination of static libraries in a dynamic

  1. #1
    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    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.

  3. #3
    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.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    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.

Similar Threads

  1. Dynamic and Static Polymorphism in Java
    By Ardent in forum Software Development
    Replies: 4
    Last Post: 19-08-2010, 03:37 PM
  2. Convert your Dynamic IP to Static IP address
    By Larry ward in forum Tips & Tweaks
    Replies: 2
    Last Post: 23-04-2010, 03:01 AM
  3. Dynamic and static parameters in database
    By spuff in forum Software Development
    Replies: 4
    Last Post: 22-02-2010, 08:29 PM
  4. Static and Dynamic RAM
    By Harpreet Gaur in forum Motherboard Processor & RAM
    Replies: 5
    Last Post: 29-01-2010, 02:31 PM
  5. Differences between static and dynamic routes
    By Raffaele in forum Networking & Security
    Replies: 3
    Last Post: 21-07-2009, 10:54 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,507,470.75038 seconds with 16 queries