It may be having trouble parsing a macro definition in that header which could then mess up parsing for the rest of the file. Are you using the right compiler version for Maya 2020? If the compiler is too old then it may not support modern syntax used in the header. I don't do windows compiling so I don't know what VS compiler version that would be, or if I am even correct in my guess.
On Mon, Feb 3, 2020, 11:44 PM Alex Gaidachev <gaidacheva...@gmail.com> wrote: > Okay this one is a tad confusing for me because I set the environment > settings right to compile Maya 2020 Plugins using the 2020Devkit and built > the project and right off the bat, it starts to complain: > > 1>------ Build started: Project: smoothWeights, Configuration: Debug x64 > ------ > 1>smoothWeightsTool.cpp > 1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(53): > warning C4003: not enough arguments for function-like macro invocation 'min' > 1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(53): > error C2059: syntax error: ')' > 1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(53): > error C2334: unexpected token(s) preceding ':'; skipping apparent function > body > 1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(54): > warning C4003: not enough arguments for function-like macro invocation 'max' > 1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(64): > error C2143: syntax error: missing ')' before ';' > 1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(64): > error C2059: syntax error: ')' > 1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(64): > error C2238: unexpected token(s) preceding ';' > 1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(66): > error C2059: syntax error: '}' > 1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(66): > error C2143: syntax error: missing ';' before '}' > ... > ... > 1>d:\installed programs\autodesk\maya2020\include\maya\mplugarray.h(73): > error C3646: 'begin': unknown override specifier > 1>d:\installed programs\autodesk\maya2020\include\maya\mplugarray.h(73): > error C2059: syntax error: '(' > 1>d:\installed programs\autodesk\maya2020\include\maya\mplugarray.h(73): > error C2238: unexpected token(s) preceding ';' > 1>d:\installed programs\autodesk\maya2020\include\maya\mplugarray.h(74): > error C3646: 'end': unknown override specifier > 1>d:\installed programs\autodesk\maya2020\include\maya\mplugarray.h(74): > error C2059: syntax error: '(' > 1>d:\installed programs\autodesk\maya2020\include\maya\mplugarray.h(74): > error C2238: unexpected token(s) preceding ';' > 1>d:\installed programs\autodesk\maya2020\include\maya\mplugarray.h(76): > error C3646: 'begin': unknown override specifier > > .. > .. > > 1>d:\installed > programs\autodesk\maya2020\include\maya\mfloatvectorarray.h(87): error > C2059: syntax error: '(' > 1>d:\installed > programs\autodesk\maya2020\include\maya\mfloatvectorarray.h(87): error > C2238: unexpected token(s) preceding ';' > 1>d:\installed > programs\autodesk\maya2020\include\maya\mfloatvectorarray.h(88): error > C3646: 'cend': unknown override specifier > 1>d:\installed > programs\autodesk\maya2020\include\maya\mfloatvectorarray.h(88): error > C2059: syntax error: '(' > 1>d:\installed > programs\autodesk\maya2020\include\maya\mfloatvectorarray.h(88): error > C2238: unexpected token(s) preceding ';' > 1>d:\installed programs\autodesk\maya2020\include\maya\mpointarray.h(37): > error C2143: syntax error: missing ';' before '<' > 1>d:\installed programs\autodesk\maya2020\include\maya\mpointarray.h(37): > error C4430: missing type specifier - int assumed. Note: C++ does not > support default-int > 1>d:\installed programs\autodesk\maya2020\include\maya\mpointarray.h(37): > error C2238: unexpected token(s) preceding ';' > 1>d:\installed programs\autodesk\maya2020\include\maya\mpointarray.h(38): > error C2143: syntax error: missing ';' before '<' > > It's complaining about Autodesk Maya's 2020 header files. What the heck is > going on here? > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/af573e6f-507b-4eea-8f15-b3a645723f65%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/af573e6f-507b-4eea-8f15-b3a645723f65%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3kqMG%3DRzi1CoK2N3_ujn45HWSa_FLWAktZjmDxD27d6g%40mail.gmail.com.