[LLVMdev] Has anyone sucessfully compile the llvm code using visual

Óscar Fuentes ofv at wanadoo.es
Sun Sep 21 07:12:39 PDT 2008


[please keep discussion on-list. thanks]

"Cloud Strife" <geforce8800 at gmail.com> writes:

> Thank you very much for your help. Now this problem has been solved and I
> have got a workable project.
>
> I am trying the example in the llvm\docs\tutorial\LangImpl4.html
> . However, after I put the whole source code into my customized project,
> there is an error output from visual studio saying:"error C2955:
> 'llvm::IRBuilder' : use of class template requires template argument list".
> ---------->static IRBuilder Builder;

try

static IRBuilder<> Builder;

> I went to the definition of the IRBuilder object and found the template
> declaration was:"
> template <bool preserveNames=true, typename T = ConstantFolder>
> class IRBuilder{
> ....}
> "
> It seems that the class has default parameters for the template, how could
> this error happen?
>
> Thank you very much for any advise. Good luck.

-- 
Oscar



More information about the llvm-dev mailing list