# Need for help. There are some errors when I built the VTK8.2.0 using MingG64.

**URL:** <https://discourse.vtk.org/t/need-for-help-there-are-some-errors-when-i-built-the-vtk8-2-0-using-mingg64/1898>\
**Category:** Development\
**Created:** [October 10, 2019, 12:35am UTC](https://discourse.vtk.org/t/need-for-help-there-are-some-errors-when-i-built-the-vtk8-2-0-using-mingg64/1898 "2019-10-10T00:35:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pngjian](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/p/858c86/32.png) [@pngjian](https://discourse.vtk.org/u/pngjian)\
**Post date:** [October 10, 2019, 12:35am UTC](https://discourse.vtk.org/t/need-for-help-there-are-some-errors-when-i-built-the-vtk8-2-0-using-mingg64/1898/1 "2019-10-10T00:35:03Z")

</div>

I selected the option “BUILD\_SHAREED\_LIBS”, cmake is ok, but errors appeared like this during compling:

In file included from E:\shot\VTK\VTK-8.2.0\_src\Domains\Chemistry\vtkSimpleBondPerceiver.cxx:26:  
E:/shot/VTK/VTK-8.2.0\_src/Common/DataModel/vtkPolyData.h:691:22: warning: ‘unsigned char vtkPolyData::GetCellPoints(vtkIdType, vtkIdType&, vtkIdType\*&)’ redeclared without dllimport attribute after being referenced with dll linkage  
inline unsigned char vtkPolyData::GetCellPoints(  
^ ~~~~~~~~~~  
CMakeFiles\vtkglew.dir/objects.a(glew.c.obj):glew.c:(.text+0x14897): undefined reference to `memset' CMakeFiles\vtkglew.dir/objects.a(glew.c.obj):glew.c:(.text+0x1c3b0): undefined reference to`memset’  
CMakeFiles\vtkglew.dir/objects.a(glew.c.obj):glew.c:(.text+0x1c4d1): undefined reference to `memset’  
collect2.exe: error: ld returned 1 exit status  
mingw32-make[2]: \*\*\* [ThirdParty\glew\vtkglew\CMakeFiles\vtkglew.dir\build.make:86: bin/libvtkglew-8.2.dll] Error 1  
mingw32-make[1]: \*\*\* [CMakeFiles\Makefile2:2400: ThirdParty/glew/vtkglew/CMakeFiles/vtkglew.dir/all] Error 2  
mingw32-make: \*\*\* [Makefile:129: all] Error 2

```
                                       Could someone can help me?
```

---

<div class="post-metadata">

**Author:** ![pngjian](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/p/858c86/32.png) [@pngjian](https://discourse.vtk.org/u/pngjian)\
**Post date:** [October 10, 2019, 11:08am UTC](https://discourse.vtk.org/t/need-for-help-there-are-some-errors-when-i-built-the-vtk8-2-0-using-mingg64/1898/2 "2019-10-10T11:08:23Z")

</div>

I have solved this problem. Find and open the file: E:\shot\VTK\vtk-bin\ThirdParty\glew\vtkglew\CMakeFiles\vtkglew.dir\flag.make. Add “-minline-all-stringops” option at the end of the C\_FLAGS line. remake the project.

The reference URL:[http://www.voidcn.com/article/p-fccyollm-ow.html](http://www.voidcn.com/article/p-fccyollm-ow.html)

---

<div class="post-metadata">

**Author:** ![bmcco90](https://discourse.vtk.org/user_avatar/discourse.vtk.org/bmcco90/32/3580_2.png) [@bmcco90](https://discourse.vtk.org/u/bmcco90)\
**Post date:** [June 21, 2021, 4:22am UTC](https://discourse.vtk.org/t/need-for-help-there-are-some-errors-when-i-built-the-vtk8-2-0-using-mingg64/1898/3 "2021-06-21T04:22:49Z")

</div>

Fix worked for me, too. Out of curiosity, how did you figure this solution out?
