Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 29 Aug 2007
Offline Last Active Jan 31 2015 07:59 AM

Posts I've Made

In Topic: Best Book for Learning DirectX 11

11 November 2013 - 11:22 AM

Thank you all for the advice. I think I'll go with the Frank Luna book to start with. I always prefer to have documentation available in printed forms.

In Topic: Linking libraries in VS 2012 (Express)

05 November 2013 - 12:25 AM

We use the Microsoft C++ compiler in much the same way as GCC on Windows. The following is a few examples from our Makefiles if it helps (personally I find the documentation for commandline MSVC usage to be really lacking!).

.cpp unit to .obj

cl.exe /nologo /EHsc -c -I..\..\..\import\msvc\include -I..\..\ $(CXXFLAGS) /Fo$@ $<
relevant .obj files to static lib. Here we are also including the GLEW32s.lib into our static lib so it doesnt need to be linked in during the final step.
lib.exe /OUT:..\..\lib\mutiny.lib $(OBJ) ..\..\import\msvc\lib\GLEW32s.lib
Link other .obj files to final .exe and then link against required libs and our static lib we generated in the step above
link.exe /SUBSYSTEM:WINDOWS /OUT:$(BIN) $(OBJ) /LIBPATH:..\..\..\import\msvc\lib /LIBPATH:..\..\..\lib OpenGL32.lib GLU32.lib SDLmain.lib SDL.lib mutiny.lib $(LDFLAGS)
The main thing to notice is the /LIBPATH parameters are similar to -L on gcc. Also note that there is no need for -l, you just specify the name of the lib (including the .lib suffix).



Thank you for that. I much prefer using the command line options so that was incredibly useful.


I think I've pretty much got to grips with linking on Windows. Thanks for everyone's help.

In Topic: Linking libraries in VS 2012 (Express)

03 November 2013 - 01:38 PM

I'm almost in the same situation as you, coming from a Unix environment to develop games in Windows. If you go to Project > Project Properties > Linker >  Input > Additional libraries, you can specifiy more explicitly which libraries your project needs. That is how I'm getting the linker to properly work. Also you will need to put the directory where those libraries are, either in Linker > Additional library directories or in VC++ Directories > Directories for library search

Hope it helps !


Thanks for the help. I've got my stuff linking statically but the dynamic linking is still eluding me at the moment. I'll have another play around with it when I have some more free time.

In Topic: Really, Google? Really?

08 July 2013 - 09:43 AM



Actually, I believe that "theif" is generally a synonym for "theft," (the act) not "thief" (the person) when it is used (very rarely) in modern English.

Oxford Dictionaries shows nothing for "theif" in US English.



Do keep in mind that there is a HUGE difference between Oxford Dictionaries, and the Oxford English Dictionary. The OED's goal is a complete history of the English language, while the smaller Oxford dictionaries are meant to only provide a reference for the language in its more current usage. Stuff comes and goes from one, while everything stays in the other.


Which is why the full Oxford English Dictionary was the best Christmas present I've ever received :). It is truly awesome in its completeness.

In Topic: Really, Google? Really?

07 July 2013 - 08:38 AM

Funny...Chrome is putting a red squiggly line under "theif" when I type it, but when I Google "define:theif" it gives me the definition of it and links to a page on Wikipedia titled "Theif".

Urban dictionary even has a page for "theif", claiming it's often used in past tense (which is untrue, because the true spelling, 'thief', is a noun...)


It's not as bad a mistake as it looks. Theif was the old spelling according to the complete Oxford English dictionary. So yes, it is incorrect in modern usage, but that spelling did exist in the past and was used.