# Problem using ida\_srclang

**URL:** <https://community.hex-rays.com/t/problem-using-ida-srclang/87>\
**Category:** IDA General\
**Created:** [January 24, 2025, 1:28pm UTC](https://community.hex-rays.com/t/problem-using-ida-srclang/87 "2025-01-24T13:28:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mistahmikey](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mistahmikey](https://community.hex-rays.com/u/mistahmikey)\
**Post date:** [January 24, 2025, 1:28pm UTC](https://community.hex-rays.com/t/problem-using-ida-srclang/87/1 "2025-01-24T13:28:08Z")

</div>

I want to be able to parse type decls that can include template types. I stumbled upon ida\_srclang as a potential way to do that, but I cannot get it to work - apparently, there is a lot more setup required than the documentation reveals. Here is what I am seeing on a simple example:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/rays_hex/original/1X/1553be6214ae645ef6b2f09590627c9574656280.png)

My host environment is Windows 11 and I have Visual Studio 2022 installed. If anyone can tell me what magic is needed to get this working, I’d appreciate it. Thanks.

---

<div class="post-metadata">

**Author:** ![mistahmikey](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mistahmikey](https://community.hex-rays.com/u/mistahmikey)\
**Post date:** [January 24, 2025, 2:01pm UTC](https://community.hex-rays.com/t/problem-using-ida-srclang/87/2 "2025-01-24T14:01:31Z")

</div>

I figured out the following will enable the parser to run:

ida\_srclang.set\_parser\_argv(“clang”,“-x c++ -target x86\_64-pc-win32”)

However, this doesn’t work like tinfo\_t.parse - it expects a fully compiable c++ snippet, so it winds up being useless for my needs.
