[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 284608] New: glew.h parsing breaks on #include <GL/glu.h>
From: Lukas Jirkovsky <l.jirkovsky () gmail ! com>
Date: 2011-10-21 11:12:12
Message-ID: bug-284608-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=284608
Summary: glew.h parsing breaks on #include <GL/glu.h>
Product: kdevelop
Version: git master
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Language Support: CPP
AssignedTo: kdevelop-bugs@kdevelop.org
ReportedBy: l.jirkovsky@gmail.com
Version: git master (using KDE 4.7.2)
OS: Linux
When using glew in a project, many of the functions defined here are marked
with the "Declaration not found" problem.
However when I remove the following code from the glew.h, the declaration for
the functions is found (actually they are using macros to query the extension
functions):
#ifndef GLEW_NO_GLU
# if defined(__APPLE__) && defined(__MACH__)
# include <OpenGL/glu.h>
# else
# include <GL/glu.h>
# endif
#endif
Using
#define GLEW_NO_GLU
#include <glew.h>
instead of simply including glew.h doesn't work.
Reproducible: Always
Steps to Reproduce:
create file containing the following code:
#include <GL/glew.h>
int main() {
glGenBuffers(1, 1);
return 0;
}
The problem toolview will say that the declaration for glGenBuffers() was not
found.
Now try to remove the "#ifndef GLEW_NO_GLU" code from glew.h. The declaration
for the glGenBuffers() is found.
Actual Results:
The declaration is found only with "#include <GL/glu.h>" removed.
Expected Results:
The declaration is found with the original glew.h header.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic