# Build-Wrapper-window and link error

**URL:** <https://community.sonarsource.com/t/build-wrapper-window-and-link-error/33245>\
**Category:** SonarQube Server / Community Build\
**Tags:** cfamily\
**Created:** [October 21, 2020, 11:30am UTC](https://community.sonarsource.com/t/build-wrapper-window-and-link-error/33245 "2020-10-21T11:30:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahzad\_Zahedi](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mahzad_zahedi/32/14680_2.png) [@Mahzad\_Zahedi](https://community.sonarsource.com/u/Mahzad_Zahedi)\
**Post date:** [October 21, 2020, 11:30am UTC](https://community.sonarsource.com/t/build-wrapper-window-and-link-error/33245/1 "2020-10-21T11:30:47Z")

</div>

I used bellow command according to Configuration Manager of My solution:  
build-wrapper-win-x86.exe --out-dir out “C:\Prgram File\MSBuild\12.0\Bin\MSBuild.exe” C:\users\admin\Desktp\MDAS\MDAS.sln /t:Rebuild /p:Configuration=Release /p:Platform=“win32”

1 Error:  
LINK181: can not open input file “x.lib” […\Desktop\MDAS\MDAS\_view\MDAS\_view.vcxproj]  
How to fix error?

---

<div class="post-metadata">

**Author:** ![mpaladin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mpaladin/32/118_2.png) [@mpaladin](https://community.sonarsource.com/u/mpaladin)\
**Post date:** [October 22, 2020, 7:15am UTC](https://community.sonarsource.com/t/build-wrapper-window-and-link-error/33245/2 "2020-10-22T07:15:39Z")

</div>

Hi @Mahzad_Zahedi,

if you run msbuild command alone does it succeed?

```auto
“C:\Prgram File\MSBuild\12.0\Bin\MSBuild.exe” C:\users\admin\Desktp\MDAS\MDAS.sln /t:Rebuild /p:Configuration=Release /p:Platform=“win32”

```

If it is not the case try to properly build your code without the build-wrapper and once you have a successful build then you can wrap it with the build-wrapper.

---

<div class="post-metadata">

**Author:** ![Mahzad\_Zahedi](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mahzad_zahedi/32/14680_2.png) [@Mahzad\_Zahedi](https://community.sonarsource.com/u/Mahzad_Zahedi)\
**Post date:** [October 22, 2020, 9:07am UTC](https://community.sonarsource.com/t/build-wrapper-window-and-link-error/33245/3 "2020-10-22T09:07:29Z")

</div>

Hi @mpaladin Massimo PaladinNo ,  
running Msbuild alone also was resulted to LINK error in this project. there are many additional libraries and dependencies in my project? how libraries are linked in Msbuild command ?

Should I set any thing such as linker in the enviroment varaibles?

---

<div class="post-metadata">

**Author:** ![mpaladin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mpaladin/32/118_2.png) [@mpaladin](https://community.sonarsource.com/u/mpaladin)\
**Post date:** [October 22, 2020, 12:35pm UTC](https://community.sonarsource.com/t/build-wrapper-window-and-link-error/33245/4 "2020-10-22T12:35:05Z")

</div>

Hi @Mahzad_Zahedi,

you should open the proper Visual Studio Developer Command Prompt which properly setup the environment for the build.
