How do i reference external libraries in c++?
Posted: Wed Oct 24, 2018 10:20 am
Hi,
I'm trying to develop my first c++ programs. I have a background in C# and java so at least some things are familiar in this process! I've managed to write a self contained console app that creates some objects etc. I'm now trying to link in a library, mainly to handle XML input and output.
I've got the source, a lib file and a dll file.
I've set the library search path and specifically referenced the dll and the lib (on different occasions) but the namespace doesn't show up in my app. I've even deliberately put in an invalid search path and library name to try to trigger an error message to see where it's actually trying to look but it just fails on my "using namespace".
Is there some setting i need to modify to make the code use external libraries? It seems like it's not even trying to use the library settings i'm giving it?
Thanks for any help you can give. At this point i'm not sure if i misunderstand the IDE options or the way c++ works. I know if this was java I'd reference an external jar and then just declare the namespace i wanted to use but I guess there's more to that for c++
Thanks
Russell
I'm trying to develop my first c++ programs. I have a background in C# and java so at least some things are familiar in this process! I've managed to write a self contained console app that creates some objects etc. I'm now trying to link in a library, mainly to handle XML input and output.
I've got the source, a lib file and a dll file.
I've set the library search path and specifically referenced the dll and the lib (on different occasions) but the namespace doesn't show up in my app. I've even deliberately put in an invalid search path and library name to try to trigger an error message to see where it's actually trying to look but it just fails on my "using namespace".
Is there some setting i need to modify to make the code use external libraries? It seems like it's not even trying to use the library settings i'm giving it?
Thanks for any help you can give. At this point i'm not sure if i misunderstand the IDE options or the way c++ works. I know if this was java I'd reference an external jar and then just declare the namespace i wanted to use but I guess there's more to that for c++
Thanks
Russell