Thread: Problem creating dll with gcc/minGW

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

    Problem creating dll with gcc/minGW

    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
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Trying to make C++ DLL, got a problem with hWnd
    By Ragoune in forum C++ Programming
    Replies: 8
    Last Post: 03-11-2009, 03:24 PM
  2. Problem about Creating structure
    By albert3721 in forum C Programming
    Replies: 3
    Last Post: 06-05-2007, 07:33 PM
  3. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 02:20 AM
  4. VCL and DLL class problem
    By borland_man in forum C++ Programming
    Replies: 1
    Last Post: 02-13-2002, 11:07 AM