# "typedef texture\<...\>' error

**URL:** <https://forums.developer.nvidia.com/t/typedef-texture-error/22923>\
**Category:** CUDA Programming and Performance\
**Created:** [June 10, 2011, 11:57am UTC](https://forums.developer.nvidia.com/t/typedef-texture-error/22923 "2011-06-10T11:57:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xrismf](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@xrismf](https://forums.developer.nvidia.com/u/xrismf)\
**Post date:** [June 10, 2011, 11:57am UTC](https://forums.developer.nvidia.com/t/typedef-texture-error/22923/1 "2011-06-10T11:57:33Z")

</div>

Hello,

I just upgraded to the CUDA SDK 4.0 and now I’m getting

> [@](#):
>
> error: expected initializer before â€˜\<â€™ token

on the following line

```auto
#include <cuda.h>

...

typedef texture<uint32_t, 1, cudaReadModeElementType> texdim1;

```

Seems that _texture_ is not detected anymore. Anyhow, this used to compile… Any clue?

Kind Regards

---

<div class="post-metadata">

**Author:** ![xrismf](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@xrismf](https://forums.developer.nvidia.com/u/xrismf)\
**Post date:** [June 10, 2011, 1:45pm UTC](https://forums.developer.nvidia.com/t/typedef-texture-error/22923/2 "2011-06-10T13:45:25Z")

</div>

Never mind, I put this code in a .cpp file, so my IDE tried to compile it using g++… I should work less [External Image](http://forums.nvidia.com/public/style_emoticons/<#EMO_DIR#>/rolleyes.gif "Image hosted on another site. Click to open in a new tab.")
