• Advertisement
Sign in to follow this  

What is with the linking on Visual 2005 C++?

This topic is 3846 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

Ok, I am trying to get glut going on Visual Studios 2005, but I get these linking errors that I can't fix. What do these links do and how can I fix this? LINK : fatal error LNK1104: cannot open file 'winmm.lib'

Share this post


Link to post
Share on other sites
Advertisement
Are you using the Express Edition? If so, you may be missing the Platform SDK which is not included in the default install.

Share this post


Link to post
Share on other sites
Yes I have the express edition, but I don't have the sdk. The thing that bothers my about that sdk is that it takes up to much space if you just need a small amount of files, just to get something going...

Share this post


Link to post
Share on other sites
You can selectively choose which parts of the SDK you want to include/exclude. For example, you can probably get away with just the "core" module (can't remember exacty name) and exclude the Media SDK, Tablet PC SDK, Internet SDK, etc (again actual names may be different).

Share this post


Link to post
Share on other sites
Yeah I already had and played with that program with OpenGL. Works pretty nice if you ask me, but Visual Studio has to be my tool for now, because I also want to play in DirectX and I don't think Dev C++ supports that and I spent a hour or two trying to get DirectX going on that thing!

Share this post


Link to post
Share on other sites
Vanilla Dev-C++ is a terrible IDE.

If you must avoid Microsoft's tools because of the download size (the sum total of the IDE + PlatformSDK is around the half-gig mark, more if you want DX as well), prefer Code::Blocks to Dev-C++. The wxDev-C++ project might be reasonable too, I haven't played with it. But plain Dev-C++ is not a good choice.

Keep in mind that it's possible you'll run into other issues with mingw (the compiler used by Dev-C++ and Code::Blocks by default); the mocked-up Platform SDK they ship with is heavily trimmed down, and things like the DX SDK are not supported well (as they may involve #pragma directives and extensions that mingw doesn't understand properly, and possibly different binary format issues -- I thought this used to be true, but now I'm not sure as I'm finding mixed results). If you need those things, and you don't mind the unfortunate 400MB download(*), you're better off just biting the bullet and getting it.

(*) It would be nice if they were able to split up the platform SDK into more discrete functional modules so you could only download the things you really wanted, but I doubt that will happen any time soon given the relative inexpensiveness of bandwidth and storage versus the expense of the major engineering effort it would take to detangle the SDK. Pity.

Share this post


Link to post
Share on other sites
I just tested VC++ with the sdk and I still get the same error!!! :0

Share this post


Link to post
Share on other sites
Check the Library Directories section of Visual Studio's Settings. Is the Platform SDK mentioned there? It may have gotten installed but not associated with Visual Studio.

Share this post


Link to post
Share on other sites
Yep it shows up so I don't know whats going on unless I have to restart the PC because of the paths in the environment variables.

EDIT I looked at them and everything seems to be what I did except for the testing part.

[Edited by - ajm113 on July 13, 2007 1:26:41 PM]

Share this post


Link to post
Share on other sites
The error indicates that the file cannot be found.
This means that the file doesn't exist, or the file is not in any of the locations that the IDE knows to search for library files. I would verify the location of the file and that it exists in one of the locations that the IDE knows about for library files under Tools -> Options -> Projects and Directories (or whatever it is).

The installer and post-install instructions should take care of everything, so perhaps you made a mistake someplace.

Share this post


Link to post
Share on other sites
No its not showing up on my PC I did the typical installation on the sdk so their is something up..

Share this post


Link to post
Share on other sites
here is winmm.lib.
Your project probably needs winmm.lib for TimeGetTime()
Add it to your project, "Add->Existing Item"

http://www.tanzanite.to/temp/winmm.zip

meow

Share this post


Link to post
Share on other sites
Thanks! But the way do you have any files under the name of opengl32.lib. I apparently have a error under that also...

Share this post


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

  • Advertisement