#include <stdio.h> #include <string.h> void test(); void test2() { test(); } void test(char *msg) { printf("test called '%s' (%d)\n", msg, strlen(msg)); } int main() { test2(); }
Standard input is empty
/home/saRL1T/ccdHWs1u.o: In function `test2()': prog.cpp:(.text+0x1): undefined reference to `test()' /home/saRL1T/ccdHWs1u.o: In function `main': prog.cpp:(.text.startup+0x5): undefined reference to `test()' collect2: error: ld returned 1 exit status
Standard output is empty