Quiz · Building and the Preprocessor · lesson 6 of 7
Quiz — undefined reference
What happens when these files are built with the command clang++ main.cpp?
// triple.h
int triple(int x);
// triple.cpp
#include "triple.h"
int triple(int x) { return x * 3; }
// main.cpp
#include "triple.h"
int main() { return triple(14); }