You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I've downloaded the latest version of ofxPd from Github repository (danomatika-ofxPd-007-47-g92869c8). When I compile the ofxPd codeblocks example project for Windows I get this error: "undefined reference to `SetDllDirectory'". The declaration of the SetDllDirectory function is in the winbase.h header file (in pure-data/src):
if (_WIN32_WINNT >= 0x0502)
define SetDllDirectory SetDllDirectoryW
endif
and in ofConstants.h (openFrameworks/utils) there is:
ifndef _WIN32_WINNT
# define _WIN32_WINNT 0x400
endif
so it seems like _WIN32_WINNT is not defined.
I've tested the project on Windows 7 and XP.
My solution is to insert "_WIN32_WINNT=0x0502" in the "#define" section of Codeblocks project build options.
Does anyone have the same problem?Is there another way to fix it?
Thank you!
The text was updated successfully, but these errors were encountered:
Ok, this is fixed. You were right, the newer version of libpd now requires the WINVER define for minigw. I've added this to the example and the readme.
Hello,
I've downloaded the latest version of ofxPd from Github repository (danomatika-ofxPd-007-47-g92869c8). When I compile the ofxPd codeblocks example project for Windows I get this error: "undefined reference to `SetDllDirectory'". The declaration of the SetDllDirectory function is in the winbase.h header file (in pure-data/src):
if (_WIN32_WINNT >= 0x0502)
define SetDllDirectory SetDllDirectoryW
endif
and in ofConstants.h (openFrameworks/utils) there is:
ifndef _WIN32_WINNT
endif
so it seems like _WIN32_WINNT is not defined.
I've tested the project on Windows 7 and XP.
My solution is to insert "_WIN32_WINNT=0x0502" in the "#define" section of Codeblocks project build options.
Does anyone have the same problem?Is there another way to fix it?
Thank you!
The text was updated successfully, but these errors were encountered: