Problem creating dll with gcc/minGW

This is a discussion on Problem creating dll with gcc/minGW within the C++ Programming forums, part of the General Programming Boards category; When I create a shared library with g++, it doesn't create a dll but a dll with ".so" at the ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,767
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 04:24 PM
  2. Problem about Creating structure
    By albert3721 in forum C Programming
    Replies: 3
    Last Post: 06-05-2007, 08:33 PM
  3. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 03: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21