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

fails with VS11 #2

Closed
asemx opened this issue Mar 23, 2012 · 5 comments
Closed

fails with VS11 #2

asemx opened this issue Mar 23, 2012 · 5 comments

Comments

@asemx
Copy link

asemx commented Mar 23, 2012

below is the error msg

"\afx.h(24) : fatal error C1189: #error : Building MFC application with /MD[d](CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]"

@asemx
Copy link
Author

asemx commented Mar 23, 2012

was able to compile by defining below flag (just temporarily modified afx.h file), i think we need to get into the build config

#define _AFXDLL

@asemx asemx closed this as completed Mar 23, 2012
@Komnomnomnom Komnomnomnom reopened this Mar 23, 2012
@Komnomnomnom
Copy link
Owner

Thanks algopats, I'll look into including that directive.

@Komnomnomnom
Copy link
Owner

Distutils adds the /MD flag so I think the issue lies with them and Visual Studio 11.

However after reading around this a bit it seems it is not recommended to built Python extensions on Windows with Visual Studio versions other than 2008 (version 9), as that is what the windows version of Python is built with. So it seems distutils will only properly support that version....

@asemx
Copy link
Author

asemx commented Mar 26, 2012

agree.

just want to note, VS11 did work using the above workaround. I am now successfully using tws with swigibpy.

@asemx asemx closed this as completed Mar 26, 2012
@Komnomnomnom
Copy link
Owner

Thanks, I'll update the documentation with some info about visual studio.

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

No branches or pull requests

2 participants