Skip to content
New issue

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

_WIN32_WINNT not defined #21

Closed
Stefan0 opened this issue Mar 27, 2012 · 3 comments
Closed

_WIN32_WINNT not defined #21

Stefan0 opened this issue Mar 27, 2012 · 3 comments
Labels

Comments

@Stefan0
Copy link

Stefan0 commented Mar 27, 2012

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!

@danomatika
Copy link
Owner

Has anyone else noticed this on Windows? I haven't on my Win 7 machine.

@danomatika
Copy link
Owner

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.

@danomatika
Copy link
Owner

Here's the libpd makefile, they use WINVER=0x502: libpd/libpd@ed453ff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants