Thread: Why create DLL with GCC/MinGW creates it with ".dll.so" extension?

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    184

    Why create DLL with GCC/MinGW creates it with ".dll.so" extension?

    When I create a shared library with g++, it doesn't create a dll but a dll with ".so" at the end. Anyone know why this is? Can i just remove the ".so" extension or is it a diff. format? How do I get it to truly be ".dll"?

    EXAMPLE:

    gcc -shared -o Test.dll -c test.cpp

    creates:

    "libTest.dll.so"

    So it prepends with "lib" and appends ".so"

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    It doesn't on my machine. What version of gcc-mingw are you using?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    184
    Quote Originally Posted by matsp View Post
    It doesn't on my machine. What version of gcc-mingw are you using?

    --
    Mats
    I finally got it to work. I was using Ant (and cc task). But the weird thing is I can only get it to work with gcc not g++. I had to add the settings "--kill-at" and "-oMYLib.dll" in the linker tag (wouldn't work anywhere else). Weird.

    Thanks for the reply!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 05:29 AM
  2. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  3. Can a DLL create a window?
    By RedLenses in forum Windows Programming
    Replies: 3
    Last Post: 05-21-2002, 10:00 PM
  4. Create a Window in a Win32 Dll?
    By RedLenses in forum C++ Programming
    Replies: 1
    Last Post: 05-21-2002, 02:21 PM
  5. Exporting Object Hierarchies from a DLL
    By andy668 in forum C++ Programming
    Replies: 0
    Last Post: 10-20-2001, 01:26 PM