Results 1 to 3 of 3

Thread: If I set my project up like a DLL, can I compile it as a static library?

  1. #1
    Join Date
    Jul 2024
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default If I set my project up like a DLL, can I compile it as a static library?

    Greetings,
    I am encountering an issue with a library that I compiled in a static library style, but which is actually configured in codeblocks to build in a dynamic link library style. Never find my headers when compiling like a static library and including in linking.
    Can someone tell me why this is?
    Last edited by objectiverut; 4th July 2024 at 09:26.
    Cheryl Dyer

  2. #2
    Join Date
    Sep 2024
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: If I set my project up like a DLL, can I compile it as a static library?

    I think you should double check your Code::Blocks configuration to make sure your project is set up for static libraries if that's what you need.

  3. #3
    Join Date
    Oct 2024
    Posts
    1
    Qt products
    Platforms
    Windows

    Default Re: If I set my project up like a DLL, can I compile it as a static library?

    Hello, I think you can check if you are using the correct file extension in your installation. For static libraries the file extension is usually .a or .lib, while for dynamic libraries it is .dll or .so
    Last edited by surroundslime; 23rd October 2024 at 06:20.

Similar Threads

  1. Replies: 0
    Last Post: 27th February 2017, 01:26
  2. Replies: 1
    Last Post: 27th July 2014, 23:29
  3. Replies: 3
    Last Post: 20th December 2012, 13:48
  4. Replies: 2
    Last Post: 19th February 2011, 12:26
  5. Compile Qt 4.6.2 to static library failed
    By kea_ in forum Installation and Deployment
    Replies: 3
    Last Post: 17th May 2010, 21:53

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.