Jump to content
  • Advertisement
Sign in to follow this  
RobotGymnast

OpenGL VC++ 2008 Express crashes after linking

This topic is 3869 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm using Visual C++ 2008 Express Edition. I'm trying to run multiple different OpenGL codes using different libraries, and have even tried on different computers, but every time I hit compile, the compiler crashes and restarts. I've tried it with simple code, eg. int main(){return 0;} but it still crashes! Am I adding the libraries wrong? I go to project -> properties -> configuration properties -> linker -> input -> additional dependencies, then I add the library I want to link.. Is this right? Is there another way to do it inside the actual code (like my friend said something about #pragma or something) Thanks

Share this post


Link to post
Share on other sites
Advertisement
#pragma comment(lib, "LIBRARYNAME.lib")

Not at ALL recommended, as it's VS specific, and it's subject to change as well. When you say the compiler is crashing, what exactly do you mean? Are you getting an error?

Share this post


Link to post
Share on other sites
Yeah, that's weird... something tells me you weren't setting up your linker settings right. Did you try building it in release mode, and seeing if that made a difference?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!