Your program can be compiled without errors in Windows. The reason why there are linking errors are probably that you do not use the correct makefile. However, there are some errors in your code.
You can make the following change.
Your program can be compiled without errors in Windows. The reason why there are linking errors are probably that you do not use the correct makefile. However, there are some errors in your code.
You can make the following change: add glutSwapBuffers() at the end of the render function. Then use the makefile for mingw: g++ -o prog -c prog. Cpp -lopengl32 -lfreeglut -lglu32.
1 As noted, you must link to the libraries, not the dll. Dll is a binary that typically contains little metadata, headers and libs provide the bindings necessary to use the dll (same concept as shared objects). – peachykeen Sep 4 at 2:39 There is no semantical difference between render and &render, they both yield the same result.It's not a error to write glutDisplayFunc(render).
– datenwolf Sep 4 at 9:18.
I eventually tried freeglut and after failing cross compiling it. I got precompiled windows binaries and after changing #include to #include and linking with freeglut32 it worked and thanks sean for pointing out those errors.
If you use freeglut, it is no need to make this change. The freeglut packpage includes a header named by "glut. H", this header will call freeglut_std.h.
This setting makes sure the code cross-platform , that is to say, it is no need to change your code, and only change the makefile or compiling and linking commands – Sean Sep 5 at 4:19.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.