Using .def files with Dev-C++

This is a discussion on Using .def files with Dev-C++ within the C++ Programming forums, part of the General Programming Boards category; I am making a .dll and need to add my .def file to the project. I am running Windows XP ...

  1. #1
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532

    Using .def files with Dev-C++

    I am making a .dll and need to add my .def file to the project. I am running Windows XP Pro and using Dev-C++ 4(one step down from the BETA version). I opened Project Options and in the further linker options or object files I typed: --def mydef.def. When I compiled it said no .def file was specified so it would create one for me. How am I supposed to add a .def file to my project? Thanks.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  2. #2
    Work in Progress..... Jaken Veina's Avatar
    Join Date
    Mar 2005
    Location
    Missouri. Go Imos Pizza!
    Posts
    256
    You added that in the "Linker" box, underneath the "Parameters" tab? That is what it says in the help files, as I assume you know. I can say, though, that I have never come across a GCC option that uses two dashes.....perhaps that was some kind of typo or the character is misread. It's worth a try to try it with one dash. Of course, I've never made DLLs before, nor used .def files, so, I wouldn't count on that piece of advice. It's just something I'd try if I were in your position.
    Code:
    void function(void)
     {
      function();
     }

  3. #3
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    Well if the Linker box under the Parameters tab is the same as hitting Project>>Project Options>>and typing it into the very top edit box of that dialog, then yes that's where I put it. I also tried just one dash(-) because I have never seen anything pass an option using two of those before either. Well hopeful somebody knows. Thanks.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Error opening files in a different dir
    By Ozzie in forum C++ Programming
    Replies: 3
    Last Post: 10-09-2008, 07:55 AM
  2. Linking header files, Source files and main program(Accel. C++)
    By Daniel Primed in forum C++ Programming
    Replies: 3
    Last Post: 01-17-2006, 11:46 AM
  3. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 02:41 PM
  4. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 398
    Last Post: 10-11-2005, 09:44 AM
  5. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 04:30 PM

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