Skip to content

error install : any.h(48): error C2039: 'type_info' #382

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

Closed
Royalxm opened this issue Mar 2, 2016 · 4 comments
Closed

error install : any.h(48): error C2039: 'type_info' #382

Royalxm opened this issue Mar 2, 2016 · 4 comments

Comments

@Royalxm
Copy link

Royalxm commented Mar 2, 2016

Log :
http://pastebin.com/NzsHSDwY

i run npm install opencv and i have this error :
opencv2\flann\any.h(48): error C2039: 'type_info' : n'est pas membre de 'std' [C:\Users\Royal\D
esktop\test3\node_modules\opencv\build\test_nativemat.vcxproj]

@nastakhov
Copy link

+1

Windows 10, Visual Studio 2013/2015

@affanshahid
Copy link

Same error. Windows 10, OpenCV 2.4.11, Node 5.10.0, npm 3.8.3

Edit: was able to fix by going to opencv2\flann\any.h and changing all references of 'std::type_info' to 'type_info' (You will also need to make the changes made in: @AwooOOoo's fork to avoid ambiguous symbol errors). I'm not entirely sure what's going on here; according to cpp reference type_info should be in std, however in VC12 (on my machine anyway) typeinfo.h does not get included into std. Would be thankful if someone could clarify what's the deal.

@chanyou
Copy link

chanyou commented Apr 7, 2016

@affanshahid It works! Thanks so much!

@danschultzer
Copy link
Collaborator

This might have been fixed with #371. I'll close this for now.

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

No branches or pull requests

5 participants