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

Compiling with Microsoft Visual Studio 2013 #6

Open
caioketo opened this issue Aug 29, 2014 · 1 comment
Open

Compiling with Microsoft Visual Studio 2013 #6

caioketo opened this issue Aug 29, 2014 · 1 comment

Comments

@caioketo
Copy link

Alright, I got it building with VS 2013, generated the lib, all fine.
But, when I'm trying to link it from my project its getting me errors as the follow:

Error 3 error C2027: use of undefined type 'T' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 22 1 JangadaResWin
Error 4 error C2226: syntax error : unexpected type 'T' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 22 1 JangadaResWin
Error 5 error C2988: unrecognizable template declaration/definition c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 22 1 JangadaResWin
Error 6 error C2059: syntax error : '' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 22 1 JangadaResWin
Error 7 error C2059: syntax error : ')' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 22 1 JangadaResWin
Error 8 error C2988: unrecognizable template declaration/definition c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 23 1 JangadaResWin
Error 9 error C2059: syntax error : '' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 23 1 JangadaResWin
Error 10 error C2059: syntax error : ')' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 23 1 JangadaResWin
Error 11 error C2143: syntax error : missing ';' before '{' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 23 1 JangadaResWin
Error 12 error C2447: '{' : missing function header (old-style formal list?) c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 23 1 JangadaResWin
Error 41 error C2059: syntax error : ')' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 245 1 JangadaResWin
Error 42 error C2334: unexpected token(s) preceding ':'; skipping apparent function body c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 245 1 JangadaResWin
Error 43 error C2143: syntax error : missing ')' before ';' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 324 1 JangadaResWin
Error 44 error C2059: syntax error : ')' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 324 1 JangadaResWin
Error 45 error C2238: unexpected token(s) preceding ';' c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 324 1 JangadaResWin
Error 46 error C1201: unable to continue after syntax error in class template definition c:\program files\microsoft visual studio 12.0\vc\include\glv\glv_util.h 324 1 JangadaResWin

Is there anyway to solve this?

@LancePutnam
Copy link
Member

Is it a problem with the min and max identifiers? You can try to place after the #include's in glv_util.h the following:

#ifdef min
#undef min
#endif
#ifdef max
#undef max
#endif

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

2 participants