Resolving 'undefined reference' error?
Example:
void func();
int main() {
func();
}
Solution:
void func() {
// function definition here
}
int main() {
func();
}
Example: Solution:Resolving 'undefined reference' error?
void func();
int main() {
func();
}
void func() {
// function definition here
}
int main() {
func();
}