#include <iostream> using namespace std; typedef void(functionPtr)(int); void function(int a){ std::cout << a << std::endl; } int main() { functionPtr fun; fun(5); return 0; }
Standard input is empty
/home/W0jOUV/ccllWY1g.o: In function `main': prog.cpp:(.text.startup+0x14): undefined reference to `fun(int)' collect2: error: ld returned 1 exit status
Standard output is empty