How to use library files.
-
Hi... I have to some static library files. I have added the library name in project setting. but the library files are not working... any help will be appriciated... Thanks...
G.Paulraj
Paulraj G wrote:
I have added the library name in project setting.
You should:
- Add the
.lib
files as linker input (additional dependecies). - Make
Visual Studio
aware of the folder(s) wherein such library files are (add the folders in theVC++
directories list). - Include the appropriate headers in your source files.
Paulraj G wrote:
but the library files are not working...
What (the fresh hell) does it mean? Could you, please, be more specific? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] - Add the
-
Hi... I have to some static library files. I have added the library name in project setting. but the library files are not working... any help will be appriciated... Thanks...
G.Paulraj
in grosso modo: Once per library: 1) Install the library. Unzip it to a directory or install it via a package manager. 2) Tell the compiler where to look for the header file(s) for the library. 3) Tell the linker where to look for the library file(s) for the library. Once per project: 5) Tell the linker which static or import library files to link. 6) #include the library's header file(s) in your program. 7) Make sure the program know where to find any dynamic libraries being used.
Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.
-
Paulraj G wrote:
I have added the library name in project setting.
You should:
- Add the
.lib
files as linker input (additional dependecies). - Make
Visual Studio
aware of the folder(s) wherein such library files are (add the folders in theVC++
directories list). - Include the appropriate headers in your source files.
Paulraj G wrote:
but the library files are not working...
What (the fresh hell) does it mean? Could you, please, be more specific? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]tsk tsk, you don't know what "files not working" mean? It means, of course, they are playing cards or drinking cooffe insteads of answering the calls of the process and doing their job. Imagine it... they are so lazy that don't even give any error message.
Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.
- Add the
-
tsk tsk, you don't know what "files not working" mean? It means, of course, they are playing cards or drinking cooffe insteads of answering the calls of the process and doing their job. Imagine it... they are so lazy that don't even give any error message.
Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.
:-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
tsk tsk, you don't know what "files not working" mean? It means, of course, they are playing cards or drinking cooffe insteads of answering the calls of the process and doing their job. Imagine it... they are so lazy that don't even give any error message.
Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.
Those library files, always reading books when they should be working... :rolleyes:
Cédric Moonen Software developer
Charting control [v3.0] OpenGL game tutorial in C++ -
tsk tsk, you don't know what "files not working" mean? It means, of course, they are playing cards or drinking cooffe insteads of answering the calls of the process and doing their job. Imagine it... they are so lazy that don't even give any error message.
Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.
-
Hi... Thanks for both of your reply. M.D.V., I am not that kind of person. Due to some network problem, Internet connection was cancelled. thats why the delay... Sorry for the trouble...
G.Paulraj
What kind of person? For what I understood, he wrote about lazy libraries... :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Hi... Thanks for both of your reply. M.D.V., I am not that kind of person. Due to some network problem, Internet connection was cancelled. thats why the delay... Sorry for the trouble...
G.Paulraj
:doh: Mmmm... so? I gave you an answer to your question and then I made a joke with the start point of one CPallini's comment (please pay attention to the "tree design" to see which message hangs on which other message and on the icons of "message type"). I never said anything about you. :rolleyes: :cool:
Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.