Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Does GLFW work on Visual C++ .Net 2003?

Author
Message
SxyGuy
18
Years of Service
User Offline
Joined: 28th Aug 2005
Location:
Posted: 23rd Oct 2005 01:22
I have Visual Studio.NET 2003 and I'm using it's Visual C++ compiler. I can't seem to get GLFW to work on the Visual C++ compiler though. I kept getting:

LNK 2019: Unresolved external symbol_imp_( and then the function name )

If I use a GLFW function, I'll get that link error.

So, am I doing something wrong or does GLFW just won't work on Visual C++ in Visual Studio.NET 2003?
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 23rd Oct 2005 10:56
Why not visit http://glfw.sourceforge.net/ and see if the FAQ will help ?

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
MiR
20
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 23rd Oct 2005 12:15
It works fine VS. I had some trouble getting it to link to the compiler, not as bad as with Dev-cpp where I had to use some makefile to compile it.

My signature has been erased by me because it's LARGE.
Thank you for the votez!1!
SxyGuy
18
Years of Service
User Offline
Joined: 28th Aug 2005
Location:
Posted: 23rd Oct 2005 22:54
The GLFW website doesn't help because I went there already.
SxyGuy
18
Years of Service
User Offline
Joined: 28th Aug 2005
Location:
Posted: 23rd Oct 2005 22:55
It works with VS? But you had some linking problem with it too? So, what linking problems did you have and how did you fix your linking problem then?
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 24th Oct 2005 10:22
Yes, it works. If you need the multi-threaded DLL static or DLL compiled versions of it (both release and debug), I can email them to you.

For free Plug-ins and source code http://www.matrix1.demon.co.uk
MiR
20
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 24th Oct 2005 17:45
Right. I´m not the best at this sort of thing but the way I di it works.
First get the glfw.h header file from the GL folder in the include folder in the download of glfw. Add this file to a folder called "GL" Visual Studio´s include folder (C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include). If it doesn´t exist create it. Now add the lib file included with this post to the lib directly in VS (C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib). Or you could make it using the makefile. I think it´s suposed to be included with glfw but I never found it.
Ok. Now with that done open or create a DGDK project and go to project->Project Name Propeties. Go to linker->entrance and add "glfw.lib" to aditional dependeices. Now this is the skeleton of a glfw DGDK program:

I use !g_iDarkGameSDKQuit instead of LoopSDK so that it doesn´t exit instantly and runs glfwTerminate(); first.
If that doen´t work then your have to add OPENGL32.LIB glut32.lib GLU32.LIB to the propities and VS´s lib folder and gl.h glu.h glut.h to the "GL" folder in VS´ include folder. I don´t know why i hadto do that. I always thought opengl was included with VS anyway but hey if it works. That should be all. Sorry if I sounded patronising.

My signature has been erased by me because it's LARGE.
Thank you for the votez!1!

Attachments

Login to view attachments
SxyGuy
18
Years of Service
User Offline
Joined: 28th Aug 2005
Location:
Posted: 30th Oct 2005 03:22
Yeah, that would be nice IanM, email both of them to my email. It's:

blue_sky_escape@yahoo.com
SxyGuy
18
Years of Service
User Offline
Joined: 28th Aug 2005
Location:
Posted: 30th Oct 2005 03:35
And MiR, I'll try that.
miko
18
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: Germany
Posted: 30th Oct 2005 15:32
Quote: "#include <DarkSDK.h>
#include <GL/glfw.h>"

Please bare with a beginner's question, but: What is the purpose of using glfw and DarkSDK together? I mean, one is OpenGL, the other is DirectX. So, why combining "diferent worlds"? I always thought one could use one OR the other, yet not both...
Thanks for enlighting me.
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 30th Oct 2005 23:31
glfw isn't just about graphics - it also has joystick, mouse and keyboard handlers in it that are just a little bit better and more flexible than those provided in DGSDK.

For free Plug-ins and source code http://www.matrix1.demon.co.uk

Login to post a reply

Server time is: 2024-03-29 08:06:01
Your offset time is: 2024-03-29 08:06:01