[LLVMdev] clang: call extern function using JIT

gafferuk gafferuk at gmail.com
Wed Aug 18 05:57:21 PDT 2010


Im confused. The function i wish to call is a return type of int.
Im calling it with int dd = yipee(1);

What's wrong?


Anton Korobeynikov-2 wrote:
> 
>> when I run my app the compiler says:
>> E:\Projects\Whistle\Whistle\Release>Whistle file.c
>> file.c(3) :  warning: implicit declaration of function 'yipee' is invalid
>> in
>> C99
>>
>>      [-Wimplicit-function-declaration]
>>    int dd = yipee(1);
>>             ^
> This way you're creating a call to variadic function. It's of different
> type
> compared to function you're binding to.
> 
> -- 
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> 
> 

-- 
View this message in context: http://old.nabble.com/clang%3A-call-extern-function-using-JIT-tp29449300p29470948.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.





More information about the llvm-dev mailing list