4 Replies - 136 Views - Last Post: 07 February 2012 - 07:13 PM Rate Topic: -----

Topic Sponsor:

#1 mike911  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 11-December 11

#pragma for .lib

Posted 07 February 2012 - 05:45 PM

Ims curious, is it even possible to specify a specific FOLDER location when using the following pragma?

#pragma comment(lib, "C:\Folder\library.lib")

ive tried every possible combination and cannot get it to work :( pretty much im wanting to link to a .lib located in a different folder

Is This A Good Question/Topic? 0
  • +

Replies To: #pragma for .lib

#2 ishkabible  Icon User is online

  • spelling expert
  • member icon



Reputation: 1147
  • View blog
  • Posts: 4,789
  • Joined: 03-August 09

Re: #pragma for .lib

Posted 07 February 2012 - 05:55 PM

well, why not just link that by using your compilers standard means of linking(like a compiler or linker option)? linking with pragma isn't in the standard.

if you still wan't to use pragm), then you might what errors you're reviving.
Was This Post Helpful? 0
  • +
  • -

#3 mike911  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 11-December 11

Re: #pragma for .lib

Posted 07 February 2012 - 06:24 PM

in visual studio how are non standard .lib's recommended to be linked?
Was This Post Helpful? 0
  • +
  • -

#4 Aphex19  Icon User is offline

  • Born again Pastafarian
  • member icon

Reputation: 469
  • View blog
  • Posts: 1,589
  • Joined: 02-August 09

Re: #pragma for .lib

Posted 07 February 2012 - 07:12 PM

Quote

in visual studio how are non standard .lib's recommended to be linked?


VC++ 2010
Project/<project name> Properties/Configuration properties/Linker/Input/Additional Dependencies

Ensure that you tell VC++ where your libs are located first though.

Project/<project name> Properties/Configuration properties/VC++ Directories
Was This Post Helpful? 0
  • +
  • -

#5 ishkabible  Icon User is online

  • spelling expert
  • member icon



Reputation: 1147
  • View blog
  • Posts: 4,789
  • Joined: 03-August 09

Re: #pragma for .lib

Posted 07 February 2012 - 07:13 PM

I found this on google. the "To use the functionality from the static library in the console application" part should solve this issue :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1