Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


freeglut linker errors


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 aerlfredith   Members   -  Reputation: 102

Like
0Likes
Like

Posted 07 July 2012 - 05:09 PM

Hi,

I'm trying to install freeglut on my pc and my testApp gets linkers errors which even after severel tries to fix i have not been able to fix.
.lib and header are inside my VS directory/VC/lib and /VC/include, the dll is inside the windows directory and still i get


1>App.obj : error LNK2019: unresolved external symbol __imp__glutLeaveMainLoop@0 referenced in function "public: void __thiscall App::Keyboard(unsigned int,int,int)" (?Keyboard@App@@QAEXIHH@Z)
1>Main.obj : error LNK2019: unresolved external symbol __imp__glutSetOption@8 referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol __imp__glutInitContextProfile@4 referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol __imp__glutInitContextVersion@8 referenced in function _main

the other glut fucntions used in normal glut (without the free) do NOT throw any errors

does anyone have any suggestions
Thanks

me :)

Sponsor:

#2 dpadam450   Members   -  Reputation: 949

Like
0Likes
Like

Posted 07 July 2012 - 06:53 PM

You have to tell the program where the .lib is to link it. It's not going to scan every .lib in that folder to find those 4 functions. If using visual studio, properties->c++->linker->input. Something like that, you will have to add the name/path of the .lib there.

#3 aerlfredith   Members   -  Reputation: 102

Like
0Likes
Like

Posted 08 July 2012 - 12:26 AM

thanks for the reply but this was my input field allready :s

glloadD.lib;glimgD.lib;glutilD.lib;glmeshD.lib;glut32.lib;freeglutD.lib;glu32.lib;opengl32.lib;gdi32.lib;winmm.lib;user32.lib;%(AdditionalDependencies)

all the D,s arefor the debug libraries, i got them from compiling the open gl SDK

#4 aerlfredith   Members   -  Reputation: 102

Like
0Likes
Like

Posted 08 July 2012 - 03:22 AM

deleted the additional library link to the open gl SDK, kept the intput field the same now no more errors,...
an explanation would still be nice :)

#5 dpadam450   Members   -  Reputation: 949

Like
0Likes
Like

Posted 08 July 2012 - 01:23 PM

Put in "xxxxx.lib" and see if it complains about not finding it. This will let you know that it isn't complaining about those because it did find them.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS