-1

First time I actually started writing a project in C++, for purposes. I'd like to include the TNL library.

The header files are already defined correctly and can use them. For the linker, when i try to use a function that's in the lib file it still gives me a LNK2019 error. The lib is added to the linker.

Error message example: enter image description here

Here are some screenshots with the paths. I 'think' that i've put them correctly but could definitely looked over something.

Additional Dependencies: enter image description here

Additional Library Directories enter image description here

Actual Library Lib's are located at: enter image description here

I'm probably tunnel-visioning on something. But I'm stuck right now and I'm clueless.

user4581301
  • 33,082
  • 7
  • 33
  • 54
  • Is the library compiled for your version of Visual Studio? Side note: If you switch from the Error List tab to the Output tab you may get a different and more explicit error message. The raw text can be much more helpful than the abbreviated version you see on the Error List AND it's plain text so you can cut and paste it verbatim into the question instead of futzing around with screenshots. – user4581301 May 07 '18 at 21:54
  • Dear, I have the source of the library and I compiled it on the 2017 platform. I believe it's on 2010 standard. Anyway. Raw text doesn't give me any more feedback than the error list. Still the same. – Bart Ramaekers May 07 '18 at 21:58
  • Bummer. Going to have to leave this to folks who know the Visual Studio tool chain better. – user4581301 May 07 '18 at 22:07
  • https://msdn.microsoft.com/en-us/library/windows/desktop/ms737582(v=vs.85).aspx and scroll down to where it tell you the lib you need. – Retired Ninja May 08 '18 at 01:41
  • Thank you ninja. Didn't notice this. – Bart Ramaekers May 08 '18 at 11:16

1 Answers1

1

The unresolved symbol is _closesocket@4, which should probably resolve to closesocket() from the Windows sockets library. Try adding "Ws2_32.lib" to the Additional Dependencies line.

Jack C.
  • 744
  • 3
  • 7