Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. problem with .exp and .lib file generation path.

problem with .exp and .lib file generation path.

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++announcement
4 Posts 2 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Suyash
    wrote on last edited by
    #1

    I have a simple MFC Appwizard exe application. I specify the "Release" directory for intermediate files and output files. However I specify altogether different directory,say "OutPut", for output .exe file. and I want that only .exe file should be be generated in this directory. However I observe that .exp file and .lib file are also generated at the same location as the .exe file. I could not find any option in project settings for specifying the path for .exp and .lib file. This problem doesn't arise if its Appwizard dll. How can one solve this issue. Thanks! Suyash

    C 1 Reply Last reply
    0
    • S Suyash

      I have a simple MFC Appwizard exe application. I specify the "Release" directory for intermediate files and output files. However I specify altogether different directory,say "OutPut", for output .exe file. and I want that only .exe file should be be generated in this directory. However I observe that .exp file and .lib file are also generated at the same location as the .exe file. I could not find any option in project settings for specifying the path for .exp and .lib file. This problem doesn't arise if its Appwizard dll. How can one solve this issue. Thanks! Suyash

      C Offline
      C Offline
      cgreathouse
      wrote on last edited by
      #2

      Here's one way you could do it Open the project properties and go to Configuration Properties->Linker->General. Then set "Output File" to $(ProjectDir)OutPut/$(ProjectName).exe

      S 1 Reply Last reply
      0
      • C cgreathouse

        Here's one way you could do it Open the project properties and go to Configuration Properties->Linker->General. Then set "Output File" to $(ProjectDir)OutPut/$(ProjectName).exe

        S Offline
        S Offline
        Suyash
        wrote on last edited by
        #3

        I am doing exactly the same thing as you suggested, however its not working out:(.

        C 1 Reply Last reply
        0
        • S Suyash

          I am doing exactly the same thing as you suggested, however its not working out:(.

          C Offline
          C Offline
          cgreathouse
          wrote on last edited by
          #4

          So just to be clear here are the settings I'm using to get this to work (for the Release configuration) Configuration Properties->General Output Directory = Release Intermediate Directory = Release Configuration Properties->C/C++ Object File Name = $(IntDir)/ Configuration Properties->Linker->General Output File = $(ProjectDir)OutPut/$(ProjectName).exe Is that what you're using?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups