English 中文(简体)
SFML和GLUT的联系人参数订单
原标题:Linker parameter order for SFML and GLUT

I was asked by someone to look into some project, where he wanted me to implement a specific feature. However, I m unable to get the program to run, it uses both SFML and GLUT. I m on Windows Vista with Dev Cpp and have both libraries installed and working fine when used separately. In this project though, I m getting a lot of linker errors which are all undefined references to GLUT functions. From previous experience, I know that changing the order of linker commands would cause errors. But I just can t seem to get it right, I m using the following order now: -lsfml-graphics -lsfml-window -lsfml-system -lglut32 -lglu32 -lopengl32

I ve also tried moving the sfml down and putting glut up, I m just unable to build. Please help. TIA!

问题回答




相关问题
Drawing many spheres in OpenGL

I want to draw many spheres (~100k) using OpenGL. So far, I m doing something like for (int i=0; i<pnum; i++){ glPushMatrix(); glTranslatef(bpos[i].x, bpos[i].y, bpos[i].z); ...

OpenGL gluUnProject object section

I m using gluUnProject to cast a ray into the scene and adding a primitive there. What I m trying to do is now accurately pick existing primitives, so if I have 3 spheres I could click on one to ...

Detecting Ctrl-<Number> in GLUT

I use GLUT to handle keyboard input for Bitfighter. I ve built a nice little keyboard event abstraction layer, which works great for most things, but I ve run up against a few frustrating limitations....

Hide command line / shell when using GLUI

I m working on an openGL project and have chosen to use GLUI for my interface. Was just wondering if anyone knows how to hide the command line / shell when running? Cheers!

How to Wrap a Commad Line Executable In a .app Package?

I wrote an OpenGL+GLUT game for Mac OS X that s currently launched through the command line. I d like to make opening the game more user-friendly by putting it into a .app package, so regular users ...

OpenGL for space simulators [closed]

with a few friends we started this amateur platform-independent java-based project for a space combat simulator game (something like the long dead saga of wing commander). None of us though is a 3D ...

repeatedly render loop with Qt and OpenGL

I ve made a project with Qt and OpenGL. In Qt paintGL() was repeatedly call I beleive, so I was able to change values outside of that function and call update() so that it would paint a new image. I ...

热门标签