.exp file

This is a discussion on .exp file within the Tech Board forums, part of the Community Boards category; Hello everyone, I am building a DLL using embedded VC 4. There is a .exp file generated into the same ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    .exp file

    Hello everyone,


    I am building a DLL using embedded VC 4. There is a .exp file generated into the same folder of the output DLL file.

    I am wondering what is the usage of this file? How to control embedded VC not to generate this file?


    thanks in advance,
    George

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    The .exp file contains an index of which functions the DLL contains. I think you do need this file, and if not, there's little point in "avoiding it being produced". Just accept that they get generated.

    --
    Mats

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677

  4. #4
    Registered User
    Join Date
    May 2006
    Posts
    1,579
    Thanks Mats,


    Quote Originally Posted by matsp View Post
    The .exp file contains an index of which functions the DLL contains. I think you do need this file, and if not, there's little point in "avoiding it being produced". Just accept that they get generated.

    --
    Mats
    I am looking for some resources about how to let linker does not produce exp file. If you have any resources, please also let me know. Do you have any resources about how to use .exp file?


    regards,
    George

  5. #5
    Registered User
    Join Date
    May 2006
    Posts
    1,579
    Thanks Mats,


    The links are very helpful. But I can not find a sample about how to use .exp file. Do you have a sample? Always, I think .lib is enough. I do not know in what situations, we need .exp file.


    regards,
    George

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by George2 View Post
    Thanks Mats,




    The links are very helpful. But I can not find a sample about how to use .exp file. Do you have a sample? Always, I think .lib is enough. I do not know in what situations, we need .exp file.


    regards,
    George
    My original post still stands - just IGNORE them! If you don't need them, they are no use to you, but I don't actually think there's a way to avoid them being made. You could build a batch file or similar to search-and-destroy these, but not sure how much point that is, because they will just crop back up again next time you build.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  2. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM
  3. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM
  4. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 01:58 AM

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