C++ linker presentation
This commit is contained in:
8
cpplinker/07_linker_errors/undefined_ref/main.cpp
Normal file
8
cpplinker/07_linker_errors/undefined_ref/main.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <iostream>
|
||||
|
||||
int add(int, int); // declared but never defined
|
||||
|
||||
int main() {
|
||||
std::cout << add(3, 4) << "\n";
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user