Thread: creating dll's using gcc?

  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
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    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, 09: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, 12:24 PM
  3. Problems about gcc installation
    By kevin_cat in forum Linux Programming
    Replies: 4
    Last Post: 08-09-2005, 09:05 AM
  4. gcc
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 10-22-2003, 03: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