|
|
On 8/28/22 12:42 Albrecht Schlosser wrote:
You are posting the error message(s) but not your command which would
have been really helpful.
Sorry, that statement was not correct (you posted the commands). What I
meant was that you didn't tell how you constructed these commands.
The best way is to use fltk-config but in this case it doesn't help
because fltk-config doesn't "know" the GLEW lib. Sorry for the confusion.
So, if you used fltk-config you should have used it like this to get the
required command switches:
$ fltk-config --use-gl --cxxflags
$ fltk-config --use-gl --ldflags
Then, add -lGLEW to the linker flags, and build your command line.
Here's a short and working form which you could simply copy:
$ g++ -o OpenGL3test `fltk-config --use-gl --cxxflags` OpenGL3test.cxx
`fltk-config --use-gl --ldflags` -lGLEW
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/6e4da45d-a5d1-01b8-05f1-a5de68f10ade%40online.de.
[ Direct Link to Message ] | |
|
| |