# A complete gradle visual c++ example

**URL:** <https://discuss.gradle.org/t/a-complete-gradle-visual-c-example/13125>\
**Category:** Help/Discuss\
**Created:** [December 8, 2015, 8:14am UTC](https://discuss.gradle.org/t/a-complete-gradle-visual-c-example/13125 "2015-12-08T08:14:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mak](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@Mak](https://discuss.gradle.org/u/Mak)\
**Post date:** [December 8, 2015, 8:14am UTC](https://discuss.gradle.org/t/a-complete-gradle-visual-c-example/13125/1 "2015-12-08T08:14:57Z")

</div>

I think to use gradle in a greather project and want to see simple complete Win32 Visual C++ example but I didnt find them.

The following things are not clear:

1. How to define WINVER=0x0601 or things like this
2. How to define user32.lib in linker args
3. How to set precompiled header  
and so on

It would be great help, if you make a default console visual c++ and then define  
the gradle files that we see how this can be handled.
