VS2008(9.0)에서 DLL파일을 포함하는 폴더의 경로를 직접 설정할 수는 없나요?

cleitia의 이미지

지금 현재 프로젝트파일이 있는 폴더에 DLL 파일들을 모두 넣어두고 사용하고 있습니다.

.h 파일과 .lib 파일은 include 와 link의 설정을 통해 폴더를 지정해줄 수 있는데요

.dll 파일들도 폴더 한 곳에 모아두고 그 폴더를 지정해서 거기서 읽을 수 있게 해줄 수 없나요?

가령

".\include_opencv2.0" h파일을 모아둔 폴더. 프로젝트 파일 경로에 있음
".\lib_opencv2.0" lib 파일을 모아둔 폴더
".\bin_opencv2.0" dll 파일을 모아둔 폴더

이렇게 설정해서 관리를 하고 싶습니다.

검색을 해봤지만 시스템환경변수로 path를 지정해줘야 한다고 하는데 그 방법도잘 되지는 않고 코드를 다른 컴퓨터에서 돌리고자 할 때 일일이 환경변수를 변경하는것은 무리라고 생각이 됩니다.

Visual Studio 의 설정을 바꾸거나 다른 컴퓨터에서 사용하는 사용자가 별도의 조작 없이 dll 폴더의 경로를 설정하는 방법이 있는지가 정말 궁금합니다.

cssddd3의 이미지

작성자분께서 의도한 건 아니지만
출력파일을 dll폴더로 지정해도 환경바뀌더라도 실행되는데 지장은 없을 거 같다고 생각이 듭니다.

pokev25의 이미지

Path 지정은 런타임시의 DLL 경로를 지정하는것이고

빌드환경을 말하시는거라면

도구-옵션-프로젝트 및 솔루션- VC++디렉터리 에서

DLL : 실행파일
inc : 포함파일
lib : 라이브러리파일

각각 지정해주시면 됩니다.

cleitia의 이미지

답변 감사드립니다!
.exe 파일이 출력되는 폴더경로를 지정할 수 있더군요. bin폴더에 dll을 모아두고 .exe파일이 출력되는 아웃풋 디렉토리를 bin폴더로 지정을 하니 제가 생각한대로 되었습니다. 감사합니다 ㅎ

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.