Closed dozadoesit closed 1 year ago
When trying to make I get the following error:
src//TrackingControl.cc:6:1: warning: no return statement in function returning non-void [-Wreturn-type] 6 | } | ^ src//USBConnection.cc:7:29: error: expected ‘,’ or ‘...’ before ‘’ token 7 | int main(int argc, char argv) | ^ src//USBConnection.cc:7:5: warning: second argument of ‘int main(int, char)’ should be ‘char ’ [-Wmain] 7 | int main(int argc, char argv) | ^~~~ make: [: src//USBConnection.o] Error 1
I fixed this by doing the following:
Change main function to the following: int main(int argc, char* argv[])
Fixed in commit #28 so this build issue wouldn't happen on main branch now.
When trying to make I get the following error:
src//TrackingControl.cc:6:1: warning: no return statement in function returning non-void [-Wreturn-type] 6 | } | ^ src//USBConnection.cc:7:29: error: expected ‘,’ or ‘...’ before ‘’ token 7 | int main(int argc, char argv) | ^ src//USBConnection.cc:7:5: warning: second argument of ‘int main(int, char)’ should be ‘char ’ [-Wmain] 7 | int main(int argc, char argv) | ^~~~ make: [: src//USBConnection.o] Error 1
I fixed this by doing the following:
Change main function to the following: int main(int argc, char* argv[])