creating dll's using gcc?

This is a discussion on creating dll's using gcc? within the Windows Programming forums, part of the Platform Specific Boards category; my question is how to create dll's using the gcc compiler (the one installed with Dev-C++ editor)?? what I'm trying ...

  1. #1
    Registered User
    Join Date
    Mar 2005
    Location
    Saudi Arabia
    Posts
    4

    Question creating dll's using gcc?

    my question is how to create dll's using the gcc compiler (the one installed
    with Dev-C++ editor)?? what I'm trying to do is create dll's to be used by the
    java native interface under MS windows....thanks in advance
    Last edited by ahmed_alzahrani; 03-28-2005 at 04:24 AM.

  2. #2
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    Dev-C++ allows you to create a DLL project.

    If you're planning to do it via the console, there's alot of switches involved:

    Code:
       gcc -c hello.c
       gcc -c -DBUILD_DLL dllfct.c
       dllwrap --output-lib=libtstdll.a --dllname=tst.dll --driver-name=gcc dllfct.o
       gcc -o hello.exe hello.o -L./ -ltstdll
    I grabbed that off the MinGW page.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 10:38 AM
  2. Compiles on gcc 3.3 but not on gcc 4.0.3
    By cunnus88 in forum C++ Programming
    Replies: 5
    Last Post: 03-29-2007, 01:24 PM
  3. Problems about gcc installation
    By kevin_cat in forum Linux Programming
    Replies: 4
    Last Post: 08-09-2005, 10:05 AM
  4. gcc
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 10-22-2003, 04:46 PM
  5. creating DLL's to allow people to execute MFC programs
    By Jamsan in forum Windows Programming
    Replies: 1
    Last Post: 03-03-2003, 02:03 AM

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