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

Can't compile disphelper.c disphelper.c:680:23: error: lvalue required as left operand of assignment #1

Open
juancentro opened this issue Jul 19, 2015 · 1 comment

Comments

@juancentro
Copy link

Hi, I get this build error when trying to compile a project that uses disphelper

mingw32-gcc.exe -Wall -fexceptions  -g     -c C:\Users\Juan\TestDisphelper\disphelper.c -o obj\Debug\disphelper.o
C:\Users\Juan\TestDisphelper\disphelper.c: In function 'ExtractArgument':
C:\Users\Juan\TestDisphelper\disphelper.c:680:7: warning: implicit declaration of function 'V_UI2REF' [-Wimplicit-function-declaration]
       V_UI2REF(pvArg) = va_arg(*marker, USHORT *);
       ^
C:\Users\Juan\TestDisphelper\disphelper.c:680:23: error: lvalue required as left operand of assignment
       V_UI2REF(pvArg) = va_arg(*marker, USHORT *);

I'm on mingw32-cc 4.8.1

@DrYak
Copy link
Owner

DrYak commented Jul 21, 2015

Means you're probably missing the definition of the "V_UI2REF" macros (i.e.: reference/pointer to an unsigned int that's 2 bytes long) in your oleauto.h file.

Wine defines it this way :

#define V_UI2REF(A)      V_UNION(A,puiVal)

You could add it to your oleauto.h file (remember to suggest a patch upstream) and/or steal the one from wine and/or add it to you own header file.

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