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

strcpy error in PythonUtils.cpp #790

Closed
a01163125 opened this issue May 16, 2022 · 2 comments
Closed

strcpy error in PythonUtils.cpp #790

a01163125 opened this issue May 16, 2022 · 2 comments

Comments

@a01163125
Copy link

Natron\Global\PythonUtils.cpp
char* pathCpy = strcpy(path.c_str());

Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *" Engine
Error (active) E0165 too few arguments in function call Engine

Hi, everyone. I encountered this issue like above. I googled strcpy function, there are no examples like only take single parameter. Is anyone knows the real solution, of course I know I could prefix with (char*) just do not want change the source code.

@devernay
Copy link
Member

Yes, this has been here forever, and this was dead code since Natron has not been compiled with Visual Studio for ages (more than 5 years).
If you want to help porting Natron so that it compiles with VS, you are very welcome. You should probably use the RB-2.5 branch with qt5.

@a01163125
Copy link
Author

Many thanks anyway.

  1. I will leave this alone temporarily because this is not a big issue.
  2. Yes, I am using vs2019 with Qt5 and did not directly compiled successfully so I used a very stupid way, disassembled everything and re-assemble them up.
  3. Thanks for help and I will try to contribute when convenient in return.
  4. By the way, do you know where can find PyInit_NatronEngine's definition? Should be in a lib file just not sure which one is. @devernay

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