We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug VS2015 x64 MFC not work
Desktop (please complete the following information):
error source code
signal0::connect this->m_connected_slots.push_back(conn);
The text was updated successfully, but these errors were encountered:
follow code may be useful.
sigslot.h define this:
#define SIGSLOT_DEFAULT_MT_POLICY single_threaded
Sorry, something went wrong.
In Visual Studio 2015 above x64, WIN32 not deined, _WIN32 defined. so, change WIN32 to _WIN32. This problem solved.
Notice: this problem only error when x64 mfc(win32 mfc is ok), examples/CommNoGui(not mfc) x64 is ok.
examples/CommNoGui
Testd (CSerialPort 2020-01-03 : sigslot.h WIN32 to _WIN32) :
#if defined(SIGSLOT_PURE_ISO) || (!defined(WIN32) && !defined(__GNUG__) && !defined(SIGSLOT_USE_POSIX_THREADS)) # define _SIGSLOT_SINGLE_THREADED #elif defined(WIN32) # define _SIGSLOT_HAS_WIN32_THREADS # include <windows.h> #elif defined(__GNUG__) || defined(SIGSLOT_USE_POSIX_THREADS) # define _SIGSLOT_HAS_POSIX_THREADS # include <pthread.h> #else # define _SIGSLOT_SINGLE_THREADED #endif
chang to
#if defined(SIGSLOT_PURE_ISO) || (!defined(_WIN32) && !defined(__GNUG__) && !defined(SIGSLOT_USE_POSIX_THREADS)) # define _SIGSLOT_SINGLE_THREADED #elif defined(_WIN32) # define _SIGSLOT_HAS_WIN32_THREADS # include <windows.h> #elif defined(__GNUG__) || defined(SIGSLOT_USE_POSIX_THREADS) # define _SIGSLOT_HAS_POSIX_THREADS # include <pthread.h> #else # define _SIGSLOT_SINGLE_THREADED #endif
483ccbc
No branches or pull requests
Describe the bug
VS2015 x64 MFC not work
Desktop (please complete the following information):
error source code
The text was updated successfully, but these errors were encountered: