LINK : fatal error LNK1104: cannot open file 'PocoFoundationmt.lib'


I have been following this link, so that I can wrap all the needed .dll’s together etc:

Basically means setting Tools -> Properties -> Configuration Properties -> C/C++ -> Code Generation -> Runtime Library, to Multi-threaded (/MT) rather than Multi-threaded DLL (/MD).

Every time I try and run the application though it gives me the following error: LINK : fatal error LNK1104: cannot open file 'PocoFoundationmt.lib’

Anybody seen this before?

That error is due to the code generation change you made. Since you changed the project to Multi-thread, all the libraries that OF links to also need to be compiled as Multi-threaded. The error is saying it is looking for the PocoFoundation library compiled as Multi-threaded (hence the “mt” postfix). The Poco libraries that come with OF were compiled as Multi-threaded DLL (and have an “md” postfix).