Some help for n00b please?


(kewlchyn) #1

Hey everyone, I’ve got some problems here, I’m completely n00b, please don’t laugh :slight_smile:
My VC++ version is 2005 Express Edition, don’t know if that’s ok?

But, returning to the main problem - When I try to build the projects in wolf.dsw workspace I get an error i Linking to “winmm.lib”. Do I need any windows SDKs or sth like that? ]
And another one - when building ui project i get an error that occurs because “WOLFDIR Variable is missing or undefined.”

Could anyone say what am I doing wrong and what should I do to make it work ?

Thanks in advance for every help provided.

Cheers,


(jaybird) #2

Express should be fine, but you’ll need to download the Platform SDK seperately. Look for it on MS’s site.


(kewlchyn) #3

thx for the instant reply :slight_smile:


(kewlchyn) #4

One more problem - do I need to download the SDK for the system i own or doesn’t it matter ?


(=>ETK<=Elite) #5

Yes, the platform SDK as was mentioned must be downloaded.

Your best option in the long run is to get used to programming on a Linux box, even if you are programming windows applications (can be compiled on linux for windows anyhow). It won;t affect the actual code as c is c, java is java, etc is etc no matter what, the language is always the same.

Multimedia I still prefer to do with windows (would like to test out a mac, haven’t yet though) however so I use a dual boot myself.

When you are learning to code, an ide is nice. But, even on windows I still will choose notepad over visual studio (even though I have .net licensed, lol). Then I would recommend to compile with an intel compiler or something (intel makes the chip you use most likely, nobody else knows better on optimisation for it)


(Superdreadnought) #6

if u wanna know the name of a very good text editor (written in java): jedit http://www.jedit.org/


(jaybird) #7

An IDE is not only meant for beginners, it’s also meant to make large projects easier to manage. When you have tens or hundreds of thousands of lines of codes across many, many different files (such as this ET SDK), it’s very easy to forget function names, class or structure members, etc. Taking a purist approach is an honorable thing to do, but grep can only get you so far. This is why most software development companies have their coders use IDE’s - it increases productivity and it helps keep the environment the same.

Personally, I use MSVC 2005’s IDE for development, but I compile win32 releases on Linux (mingw).

BTW - if you’re looking for a really nice, lightweight but powerful text editor for coders on the win32 platform, check out notepad++.


(kamikazee) #8

Actually, these are just normal errors.
The winmm.lib error is caused by ET 2.60 and an outdated 2.56 project file, and the WOLFDIR variable is just a thingy they used to move the project file along different computers without changing the W:ET path every time.

To get rid of it, you need to change the build configurations. The best matching version of Visual Studio I got is the 2003 .NET version, so you might need to improvise here and there when the menu options don’t match.

Since you converted the project to make it open in VS 2005, I’ll skip the conversion/openening part. Just open the project, and read on.

Go to View -> Solution Explorer. Click the game project so the IDE knows it’s that one to work with.
Now go to Project -> Properties. If all went well, the title of that window should read “game Property pages”. Also make sure that the Configuration field at the top is set to Release.

On to the winmm.lib error: go to the Linker folder icon and click to open it. Go to the Input sub-page. In there, a textfield “Additional dependencies:” should be present. Enter “winmm.lib” and press the Apply bottom at the bottom of the screen.

The binary should compile and link from here on, but we’re not done yet. The WOLFDIR problem will probably still pop up, so open the “Build events” folder. Then open the Post-Build event" sub-page and clear the “Command line” textfield, or modify it so your binaries get copied into your mod’s folder. (This should be in your W:ET folder, of course.) Click “Apply”, click “Ok” and try Build -> build game.

Don’t forget to post how it turns out. :wink:


(kewlchyn) #9

Thank all of you very much. Now, I am abl;e to build cgame and ui with no problems, but game still has that winmm.lib error. Do I need an SDK to make a successful link to winmm?
Cheers,


(kamikazee) #10

If CGame links as it should, the linker has no problem locating winmm.lib. So no SDK should be installed.

Are you sure that you added the library for the linking stage of the game project, and for both the debug and release configurations?


(kewlchyn) #11

Well, cgame has no linking here…


(kamikazee) #12

You said you built it successfully. Building consists of compiling and linking all files, so the linking must be ok.


(kewlchyn) #13

I mean cgame doesn’t have winmm.lib as an additional dependency…


(kamikazee) #14

Oops, seems you were right that an SDK is necessary. VS 2005 EE does not include all libraries and needs them installed seperately.

Sorry for the confusion. I found a post which might help you though: compiling with VS 2005 EE (see linked post by Ragnar_40k).