<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>OpenGL Discussion and Help Forums - OpenGL Toolkits (e.g. GLUT, GLFW, GLM)</title>
		<link>http://www.opengl.org/discussion_boards/</link>
		<description>Discussions about OpenGL toolkits and mid-level APIs such as GLUT, GLFW, GLM, etc.</description>
		<language>en</language>
		<lastBuildDate>Thu, 23 May 2013 13:20:18 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.opengl.org/discussion_boards/images/misc/rss.png</url>
			<title>OpenGL Discussion and Help Forums - OpenGL Toolkits (e.g. GLUT, GLFW, GLM)</title>
			<link>http://www.opengl.org/discussion_boards/</link>
		</image>
		<item>
			<title><![CDATA[How do I compile a .c file that uses glm.h? ["undefined references"]]]></title>
			<link>http://www.opengl.org/discussion_boards/showthread.php/181727-How-do-I-compile-a-c-file-that-uses-glm-h-undefined-references?goto=newpost</link>
			<pubDate>Fri, 17 May 2013 23:25:12 GMT</pubDate>
			<description><![CDATA[Hello guys, 
 
I'm writing a simple code (using *gedit* on *Ubuntu*) in *C* to import a 3d model (*.obj*). 
 
In my code I'm using the library...]]></description>
			<content:encoded><![CDATA[<div>Hello guys,<br />
<br />
I'm writing a simple code (using <b>gedit</b> on <b>Ubuntu</b>) in <b>C</b> to import a 3d model (<b>.obj</b>).<br />
<br />
In my code I'm using the library &quot;<b>glm.h</b>&quot; and I'm using the following commands:<br />
<br />
GLMmodel* f16;<br />
f16 = (GLMmodel*)malloc(sizeof(GLMmodel));<br />
f16 = glmReadOBJ(&quot;./objs/f16.obj&quot;);<br />
<br />
in order to compile, I'm using the following line:<br />
gcc -Wall test.c -o test -lglut<br />
<br />
but terminal prints the following errors:<br />
<br />
&quot;<b>undefined reference</b> to glmDraw<br />
undefined reference to glmReadObj&quot;<br />
<br />
What can I do to compile my code correctly?</div>

]]></content:encoded>
			<category domain="http://www.opengl.org/discussion_boards/forumdisplay.php/14-OpenGL-Toolkits-%28e-g-GLUT-GLFW-GLM%29">OpenGL Toolkits (e.g. GLUT, GLFW, GLM)</category>
			<dc:creator>rehcarlos</dc:creator>
			<guid isPermaLink="true">http://www.opengl.org/discussion_boards/showthread.php/181727-How-do-I-compile-a-c-file-that-uses-glm-h-undefined-references</guid>
		</item>
		<item>
			<title>GlewInit</title>
			<link>http://www.opengl.org/discussion_boards/showthread.php/181641-GlewInit?goto=newpost</link>
			<pubDate>Tue, 07 May 2013 18:46:55 GMT</pubDate>
			<description><![CDATA[I've now got around to creating a simplistic rendering system with OpenGL, however while testing I'm encountering an access violation exception which...]]></description>
			<content:encoded><![CDATA[<div>I've now got around to creating a simplistic rendering system with OpenGL, however while testing I'm encountering an access violation exception which occurs when I try to call glGenBuffers(1, &amp;m_ElementBuffer);. <br />
<br />
My Renderer::Init function has this in it:<br />
 <div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><div class="" style="font-family:monospace;"><pre style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">if(!glfwInit())
	{
		fprintf(stderr, &quot;GLFW failed to init, CRITICAL ERROR!\n&quot;);
		return false;//Have to back out due to severity of error
	}
	glfwOpenWindowHint(GLFW_FSAA_SAMPLES, 4);
	glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3);
	glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 3);
	glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
&nbsp;
	if(!glfwOpenWindow(int(m_Dimensions.x), int(m_Dimensions.y), 0,0,0,0, 32,0,GLFW_WINDOW))
	{
		fprintf(stderr, &quot;GLFW Open Window failed, aborting...\n&quot;);
		glfwTerminate();
		return false;
	}
&nbsp;
	glewExperimental = true;
&nbsp;
	if(glewInit() != GLEW_OK)
	{
		fprintf(stderr, &quot;Glew failed to init \n&quot;);
		return false;
	}
	glClearColor(0.0f,0.0f,0.4f,0.0f);
	glEnable(GL_DEPTH_TEST);
	glDepthFunc(GL_LESS);
	glfwSetWindowTitle(&quot;Render&quot;);</pre></div></code><hr />
</div>I then go on to parse an xml file to further initialization.<br />
<br />
The problem I'm getting is when I call a sceneNodes init function which then calls its renderObjects init function which creates the buffers and all OpenGL related 'stuff' for that object. I am fairly sure that I am calling this after glewInit and have double checked numerous times although I will check it when I come back to this after a break away from the computer. I figure that something has gone wrong with glewinit since in my watch list, when I debug, it says that glGenBuffers is undefined however it also says this about glClear() which executes fine.<br />
<br />
I'm sure it's something obvious that I may pick up straight away when I come back to it, but for the moment I am stumped and would appreciate any suggestions.<br />
<br />
Realized some extra information might be needed, I using an AMD Radeon HD7850 Core Edition for XFX, I have used this function successfully in another project without any issues and glGetString(GL_VERSION) returns &quot;3.3.12002 Core Profile Context 9.12.0.0&quot;</div>

]]></content:encoded>
			<category domain="http://www.opengl.org/discussion_boards/forumdisplay.php/14-OpenGL-Toolkits-%28e-g-GLUT-GLFW-GLM%29">OpenGL Toolkits (e.g. GLUT, GLFW, GLM)</category>
			<dc:creator>OliverMD</dc:creator>
			<guid isPermaLink="true">http://www.opengl.org/discussion_boards/showthread.php/181641-GlewInit</guid>
		</item>
		<item>
			<title>Help GLM, GLEW and GLWF!</title>
			<link>http://www.opengl.org/discussion_boards/showthread.php/181627-Help-GLM-GLEW-and-GLWF%21?goto=newpost</link>
			<pubDate>Sun, 05 May 2013 22:01:57 GMT</pubDate>
			<description><![CDATA[Hello, since I'm trying to study the openlgl 3.3'm going crazy in both Linux and Windows. 
I have tried various IDE (Code Blocks, Dev-Cpp, Eclipse,...]]></description>
			<content:encoded><![CDATA[<div>Hello, since I'm trying to study the openlgl 3.3'm going crazy in both Linux and Windows.<br />
I have tried various IDE (Code Blocks, Dev-Cpp, Eclipse, etc ...) but they never work the tutorials that follow.<br />
I'm having trouble with GLM, GLEW and GLWF, as it must at least set Code Blocks on Linux and Windows to follow the tutorial? :doh:</div>

]]></content:encoded>
			<category domain="http://www.opengl.org/discussion_boards/forumdisplay.php/14-OpenGL-Toolkits-%28e-g-GLUT-GLFW-GLM%29">OpenGL Toolkits (e.g. GLUT, GLFW, GLM)</category>
			<dc:creator>Taurus</dc:creator>
			<guid isPermaLink="true">http://www.opengl.org/discussion_boards/showthread.php/181627-Help-GLM-GLEW-and-GLWF%21</guid>
		</item>
	</channel>
</rss>
