Quote Originally Posted by 2kaud View Post
You are redefining the symbol DLLSYM.
Try just

Code:
debug_file = "C:\\Flaviu\\test.txt";
I have tried that, the test.txt file is still empty ... I am not get it ... I have compiled leptonica, and tesseract library successfully, included inside my project, no error, still, the following simple code is not working:

Code:
	if (0 != api.Init(NULL, NULL))
	{
		m_sState.Format(_T("tesseract initialize error. last error: %d"), GetLastError());
		::SendMessage(theApp.m_pMainWnd->GetSafeHwnd(), WM_SETMESSAGESTRING, 0, (LPARAM)(LPCTSTR)m_sState);
	}

// tesseract initialize error. last error: 3
strange ... I guess is about configuring tesseract ? However, they were compiled successfully ... with no error, the same platform, the same settings ...