# GLFW\_NO\_API not declared in scope, but seems to be linked correctly

**URL:** <https://discourse.glfw.org/t/glfw-no-api-not-declared-in-scope-but-seems-to-be-linked-correctly/936>\
**Category:** support\
**Created:** [July 7, 2017, 7:36pm UTC](https://discourse.glfw.org/t/glfw-no-api-not-declared-in-scope-but-seems-to-be-linked-correctly/936 "2017-07-07T19:36:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pipnina](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@pipnina](https://discourse.glfw.org/u/pipnina)\
**Post date:** [July 7, 2017, 7:36pm UTC](https://discourse.glfw.org/t/glfw-no-api-not-declared-in-scope-but-seems-to-be-linked-correctly/936/1 "2017-07-07T19:36:54Z")

</div>

I’m following [this](https://vulkan-tutorial.com/Development_environment#page_Vulkan_SDK) tutorial to learn Vulkan, and it gives me some code at the bottom (in the linux section, in the “setting up makefile project” part).

I used the vulkan & GLFW libraries included in my distribution’s package manager, so I’m using the most up-to-date vulkan (1.0.56 I think) and GLFW 3.1.2. I use Mint 18.1

But for some reason, GLFW\_NO\_API is not part of the header file, and causes a “not declared” error at compile time.

Shouldn’t this definition be part of any version of GLFW? Why might it not be in mine? How can I get around this?

---

<div class="post-metadata">

**Author:** ![mmozeiko](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/mmozeiko/32/29_2.png) [@mmozeiko](https://discourse.glfw.org/u/mmozeiko)\
**Post date:** [July 8, 2017, 3:15am UTC](https://discourse.glfw.org/t/glfw-no-api-not-declared-in-scope-but-seems-to-be-linked-correctly/936/2 "2017-07-08T03:15:17Z")

</div>

GLFW\_NO\_API and Vulkan was added only in version 3.2: [http://www.glfw.org/changelog.html](http://www.glfw.org/changelog.html)  
Either check if your distribution has newer glfw package, or you’ll need to build glfw from source.

---

<div class="post-metadata">

**Author:** ![pipnina](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@pipnina](https://discourse.glfw.org/u/pipnina)\
**Post date:** [July 8, 2017, 1:27pm UTC](https://discourse.glfw.org/t/glfw-no-api-not-declared-in-scope-but-seems-to-be-linked-correctly/936/3 "2017-07-08T13:27:27Z")

</div>

I managed to get 3.2 .debs from launchpad and installed them with DPKG, it works perfectly now, thanks 😃
