I'm trying to use a python module in a C++ project I'm developing in VS2019 and seem unable to link it. I've added my Python37-32/Includes directory to the Additional Include Directories, added my Python37-32/Libs folder to my Additional Library Directories and Python37-32/Libs to my Additional Dependencies yet still get an error. The error is LNK1181: cannot open input file 'C:\Python37-32\libs.obj'. I've tried numerous fixes including : deleting configurations and removing the libs directory from Additional Dependencies however this often results in numerous undefined Python functions which obviously indicate the library isn't being linked.
How would I go about linking this correctly?
I've found the solution. My configuration was correct without Additional Dependencies however my version of Python being referenced was 32-bit on a 64-bit build.
How to link Python3.7 to VS2019 C++ Project