[cfe-dev] Creating llvm projects using visual studio

kalyan ponnala ponnala.kalyan at gmail.com
Thu Feb 18 12:16:14 PST 2010


Hi,

I am trying to create an small project using visual studio.
I would like to know how to create a project with two '.c' source files. The
first .c file should have the main() program and a function declaration and
function call in it.
The second .c file should contain the function definition.
I tried doing that using visual studio. It can compile and understand that
the function definition is in a separate .c file (but in the same project
folder). But when I tried to compile the same program with
 clang -c main.c -emit-llvm -o main.bc
lli main.bc

It gave me this error:
LLVM ERROR: program used external function 'functioncall' which could not be
resolved!

could you tell me how to debug these kind of projects which have the
function definitions in a separate .c file ??

Thanks
-- 
Kalyan Ponnala
phone: 8163772059
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100218/73076ad6/attachment.html>


More information about the cfe-dev mailing list