Hi Javier,

inking...
MyPrueba.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void 
__thiscall log4cxx::Logger::forcedLog(class log4cxx::helpers::ObjectPtrT<class log4cxx::Level> 
const &,class std::basic_string<char,struct std::char_traits<
char>,class std::allocator<char> > const &,char const *,int)" ([EMAIL 
PROTECTED]@log4cxx@@[EMAIL PROTECTED]@log4cxx@@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED])
MyPrueba.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void 
__cdecl log4cxx::PropertyConfigurator::configure(class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &)" (_
[EMAIL PROTECTED]@log4cxx@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL 
PROTECTED]@2@@std@@@Z)
Debug/prueba.exe : fatal error LNK1120: 2 unresolved externals

This looks like the log4cxx.lib link library is not linked with your
project. Are you sure that you added it to the libraries of your project?
Otherwise, please post a minimal source code example, like

#include <log4cxx/logger.h>
[...]

int main() {
    PropertyConfigurator::configure(...);
    LoggerPtr logger = Logger::getLogger(...);
    LOG4CXX_FATAL(logger, ...);
}

Also, how could I know wich libs/files should I deploy with my exe
app ?

Regarding log4cxx, you need log4cxx.dll. Of course you need
any other third party library you are using. Its always a good
idea to test the deployment on a fresh installation of your
operating system before deploying them, virtual machines like
vmware or qemu can be of great help there.

Best Regards,

        Andreas

Reply via email to