Note that there are some explanatory texts on larger screens.

plurals
  1. POA slight issue with GLFW (x64)
    primarykey
    data
    text
    <p>I am currently working on converting some of my applications to C++, and for that i have decided to use openGL, as ive got some experience with it from other platforms. But getting this to compile in x64 seems to be quite a lot of hassle. To check if my linking stuff is working i am just trying to compile this tutorial:</p> <p><a href="http://www.opengl-tutorial.org/beginners-tutorials/tutorial-1-opening-a-window/" rel="nofollow">http://www.opengl-tutorial.org/beginners-tutorials/tutorial-1-opening-a-window/</a></p> <p>But as you can see, i failed miserably. I have downloaded and installed:</p> <ul> <li>freeglut</li> <li>GLM</li> <li>GLFW</li> <li>GLEW</li> </ul> <p>The issue clearly seems to lay within GLFW. I am using Visual express c++ 2010.</p> <p>I installed GLFW like this: </p> <ul> <li>GLFW.dll (System32)</li> <li>glfw.h (C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\gl)</li> <li>GLFW.lib (C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64)</li> <li>GLFWDLL.lib (C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64)</li> </ul> <p>My linker:</p> <pre><code>kernel32.lib;glu32.lib;glew32.lib;GLFW.lib;GLFWDLL.lib;opengl32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) </code></pre> <p>Output:</p> <pre><code>1&gt;------ Build started: Project: Spacecraft, Configuration: Debug x64 ------ 1&gt; Main.cpp 1&gt;Main.obj : error LNK2019: unresolved external symbol __imp_glfwGetWindowParam referenced in function main 1&gt;Main.obj : error LNK2019: unresolved external symbol __imp_glfwGetKey referenced in function main 1&gt;Main.obj : error LNK2019: unresolved external symbol __imp_glfwSwapBuffers referenced in function main 1&gt;Main.obj : error LNK2019: unresolved external symbol __imp_glfwEnable referenced in function main 1&gt;Main.obj : error LNK2019: unresolved external symbol __imp_glfwSetWindowTitle referenced in function main 1&gt;Main.obj : error LNK2019: unresolved external symbol __imp_glfwTerminate referenced in function main 1&gt;Main.obj : error LNK2019: unresolved external symbol __imp_glfwOpenWindow referenced in function main 1&gt;Main.obj : error LNK2019: unresolved external symbol __imp_glfwOpenWindowHint referenced in function main 1&gt;Main.obj : error LNK2019: unresolved external symbol __imp_glfwInit referenced in function main 1&gt;c:\users\leif andreas\documents\visual studio 2010\Projects\Spacecraft\x64\Debug\Spacecraft.exe : fatal error LNK1120: 9 unresolved externals ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== </code></pre> <p>And finally, my includes:</p> <pre><code>// Include standard headers #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; // Include GLEW #include &lt;gl/glew.h&gt; #include &lt;gl/glut.h&gt; // Include GLFW #include &lt;gl/glfw.h&gt; // Include GLM #include &lt;glm/glm.hpp&gt; using namespace glm; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload