i compile it with g++ main.cpp
and on the vulkan.elf i have everything in extern "C"{}
all plhook stuff is in the same directory as main.cpp
how do i solve this?
compiler error =
main.cpp: In function ‘ssize_t recv()’:
main.cpp:12:14: error: ‘main’ was not declared in this scope
12 | ssize_t rv = main();
| ^~~~
The error itself is solved if int main(void); is added before ssize_t recv(){.
But even though it is solved, your code is useless. It calls main() and recv() alternately until the process crashes.
i compile it with
g++ main.cpp
and on thevulkan.elf
i have everything inextern "C"{}
all plhook stuff is in the same directory asmain.cpp
how do i solve this? compiler error =