[LLVMdev] How to explain this weird phenomenon????????
Duncan Sands
baldrick at free.fr
Tue Apr 10 06:03:00 PDT 2012
Hi 15102925731,
> But when I link the two objective file, it said
> "hello.o: In function `main':
> hello.bc:(.text+0x69): undefined reference to `check'
> clang: error: linker command failed with exit code 1 (use -v to see invocation)"
> What's wrong??
...
> declare i32 @check()
...
> *The original check.c file*
> #include <stdio.h>
> void print()
Should be called check not print.
> {
> printf("Check function works!\n");
> }
Ciao, Duncan.
More information about the llvm-dev
mailing list