Gl glew.h no such file




















The simplest reason is that you want the compiler to look for myheader. You may be tempted to think 'I know that file is there! This problem is somewhat greater on Unix-like system, such as Linux, as there file names are character case sensitive, so Myheader. For this reason, a very good rule of thumb is:. Never include spaces or other special characters in file names. Apart from avoiding file not found errors, this will also make life much easier if you are porting your code to other operating systems which may or may not respect character case.

This is generally good practice, but can cause problems. Now if you compile the source myfile. You need to tell it to look there somehow. One thing some people try when faced with this problem is to re-write myfile.

If the directory structure does change, you will have to edit all your include directories. The better way to deal with this problem is to tell the compiler directly where to look for header files. Of course, writing such command lines is error prone, and you should put such stuff in a makefile , the use of which is unfortunately outside the scope of this article.

The problem is inside glew. Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. Linked pull requests. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. I'm in Arch Linux 64 and using code blocks to compile. Improve this question. You shouldn't use it for anything, and if a tutorial is telling you to do so, you should use another tutorial.

NicolBolas Hmm What alternatives are there? NicolBolas I tried doing apt-get install for 1. I kept trying for every newer version and kept getting the same error until 1. And even after installing 1. Just one header and one C file to add to your project. Add a comment. Active Oldest Votes. Improve this answer.

Perfect, command works for Fedora 29 sudo dnf install glew-devel — Stef. Run the following command: sudo apt-get install libglew-dev. Ne 1, 1 1 gold badge 6 6 silver badges 17 17 bronze badges.



0コメント

  • 1000 / 1000