# Compilation error

**URL:** <https://forums.developer.nvidia.com/t/compilation-error/14558>\
**Category:** CUDA Programming and Performance\
**Created:** [January 25, 2010, 6:55pm UTC](https://forums.developer.nvidia.com/t/compilation-error/14558 "2010-01-25T18:55:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlos\_mex](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@carlos\_mex](https://forums.developer.nvidia.com/u/carlos_mex)\
**Post date:** [January 25, 2010, 6:55pm UTC](https://forums.developer.nvidia.com/t/compilation-error/14558/1 "2010-01-25T18:55:53Z")

</div>

Hi,  
i’m trying to compile a program in cuda but i get the following error:

/usr/bin/ld: cannot find -lGLEW\_x86\_64

does anyone know why? i would appreciate any help posible. thanks. carlos.

---

<div class="post-metadata">

**Author:** ![cgorac](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@cgorac](https://forums.developer.nvidia.com/u/cgorac)\
**Post date:** [January 25, 2010, 7:37pm UTC](https://forums.developer.nvidia.com/t/compilation-error/14558/2 "2010-01-25T19:37:34Z")

</div>

The code in question is probably using [GLEW](http://glew.sourceforge.net/) library, so - either try to find and install GLEW package for your distribution, or install the library from source. Or, if you’re using an SDK sample as a template (as some SDK samples are using GLEW, so it gets installed along with the SDK too, but not in the system directory), then change your makefile, and be sure to supply proper search directory (this should be sdk/shared/lib/linux, under your SDK installation tree) to the linker.
