[LLVMdev] How to explain this weird phenomenon????????

15102925731 zhenkaixd at 126.com
Tue Apr 10 06:08:37 PDT 2012


Again, problem solved!
Awesome! Thank you!!!


--

            祝好!
 
  甄凯
------------------------------------------------------------------------------------------------------
2012-04-10
------------------------------------------------------------------------------------------------------
Name: 甄凯(ZhenKai)
Homepage:http://www.renren.com/262729393
Email: zhenkaixd at 126.com or 846227103 at qq.com
TEL: 15810729006(Beijing)
Address: Room I-406, Central Building, Tsinghua University, Beijing, China. 100084.



At 2012-04-10 21:03:00,"Duncan Sands" <baldrick at free.fr> wrote:
>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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120410/7a00d49b/attachment.html>


More information about the llvm-dev mailing list