-2
int main() {
char const* path = "/bla/bla";
struct zip *teste;
int *errorp;
&teste = *zip_open(path, ZIP_CREATE, errorp);
return 0;
}
It returns this error:
main.cpp: In function ‘int main()’: main.cpp:11:50: error: lvalue required as left operand of assignment &teste = *zip_open(path, ZIP_CREATE, errorp);
I guess it’s because I’m not assigning anything to errorp
but does it need to save exactly? when I assign a number to it from the conversion error.
I am following that documentation.
Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful to you. You can also vote on any question or answer you find useful on the entire site
– Maniero