Library build path

This is a discussion on Library build path within the C++ Programming forums, part of the General Programming Boards category; Is there a way to move the libarries produced in the debug directory to an other dir automatically? I was ...

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    132

    Library build path

    Is there a way to move the libarries produced in the debug directory to an other dir automatically? I was thinking of somehting in the post-build tab of VC++6 but I dont know exactly.
    Y3K Network http://www.y3knetwork.com
    Bringing the software of the future on the net.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    Project->Settings->General..

    You can change the directory for output files there if you wish..

    Dont know if that's what you mean

  3. #3
    Registered User
    Join Date
    Jun 2002
    Posts
    132
    No, this sets where the DLL will be placed, not the libraries of the DLL.
    Y3K Network http://www.y3knetwork.com
    Bringing the software of the future on the net.

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    So you want it to dump the libraries in a seperate place from the rest of the output??

    I dont know if it can do this noramlly...but you can add a tool to do it I guess?? But you would still need to run that tool after a build unless you incorporated it into a VC++ macro....

    Tools->Customise->tools...add a new tool and issue a command like "copy" to put all files of type "*.lib" found in the "$(TargetDir)" into a seperate folder....

    You can then add that seperate lib folder into the search directories for the build process;

    Tools->Options->Directories->Show Directories for->Library files

    Now add the path to you new folder.

    That should work...but I wouldnt want to do it....I prefer to keep my libs and dlls in the same place

  5. #5
    Registered User
    Join Date
    Jun 2002
    Posts
    132
    I added a tool, but do you know the command to copy the files? Is it like dos?
    I typed:
    copy Utils.lib ../lib/Utils.lib

    But it said that it didnt recognise that command.
    Y3K Network http://www.y3knetwork.com
    Bringing the software of the future on the net.

  6. #6
    Registered User
    Join Date
    Dec 2001
    Posts
    70
    I'm not sure but aren't you asking about

    Project / Settings/ Post-build step Tab ?

    The tab is still there, you can use it with copy ... command,

    in MSVC 6 of course.

  7. #7
    Registered User
    Join Date
    Jun 2002
    Posts
    132
    K thanks
    Y3K Network http://www.y3knetwork.com
    Bringing the software of the future on the net.

  8. #8
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    Also, if you want to use old "Dos" style commands in the tools option, you can use Bat files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. standrad library
    By sarahr202 in forum C++ Programming
    Replies: 11
    Last Post: 05-18-2009, 08:50 PM
  2. Shared library design problem
    By p1r0 in forum C++ Programming
    Replies: 9
    Last Post: 03-23-2009, 12:36 PM
  3. Linker errors in VC++ 2005
    By C+/- in forum C++ Programming
    Replies: 0
    Last Post: 05-18-2007, 07:42 AM
  4. Library Path
    By rigel_kent in forum Linux Programming
    Replies: 1
    Last Post: 11-09-2004, 10:22 AM
  5. Creating my own library
    By gozlan in forum C Programming
    Replies: 8
    Last Post: 10-14-2002, 11:11 PM

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