Skip to main content
GameDev.net gamedev.net
🔒 Locked 🤖 Godot

Free C++ compiler to use with DirectX 9

Started by Kenny Francis Apr 22, 2005 at 5:23 PM 4 replies 2k views
Original Post
Kenny Francis
Kenny Francis
I'm looking for a free C++ IDE that I can set up with Directx. I've heard mixed things about many compilers/IDEs and I'm not sure which to use. I have a few downloaded (but not installed) but haven't tryed them out. I hear Code::Blocks is good, I have it , the Eclipse C++ one, Dev-C++ (crashes on my computer) and the Micro$oft one. Visual Studio I think.... Any recommendations? Also I'm a noob and don't really know how to set up and link teh DirectX so any pointers there would be helpful too. Thanks. [grin]
Mushu
Mushu
I'd suggest MSVS, simply because its my weapon of choice.

This is how its done in MSVC6 (that's the only version I have [sad])
To link in DX, first you need the SDK installed somewhere. Inside the SDK folder, there should be two more folders named /include and /lib. You'll need to add these folders into your compiler's directories:Tools > Options > Directories > Show Directories for: Include filesAdd a new entry for the /include folder.Show Directories for: Library files.Now add one for the /lib folder.That will tell MSVS where to look for the stuff, but you'll need to link in the DX libraries to every project you make (you only need to do the above once per IDE). To do this:Project > Settings > Link > Object Library Modulestype "d3d8.lib d3dx8.lib" into the corresponding textbox, preferably at the very beginning. That'll tell your linker to link in the libraries.And then you're good. Don't forget to #include both <d3d8.h> and <d3dx8.h>
wazoo69
wazoo69
FAQ! FAQ! Read Da FAQ!

Seriously...the different compilers should definitely be in there, but there ARE instructions on setting up the DX libs into the .NET IDE...(in fact, I believe the latest SDK install does it all for you)..

It's only the .NET 2005 beta2 that requires you to do the manual step..

hth
Kenny Francis
Kenny Francis
Quote:
Original post by Mushu
I'd suggest MSVS, simply because its my weapon of choice.

This is how its done in MSVC6 (that's the only version I have [sad])
*** Source Snippet Removed ***


Yeah, I can only get version 6 too, my computer's OS is only ME. [sad]
wazoo69
wazoo69
If that's the case, you may just have to use the Summer2003 SDK release (9.0b I believe).

I think the revs since then are only for .NET 2003 and higher..:(

sorry dude.
Kenny Francis
Kenny Francis
Got a link? I downloaded one monster of a 60MB download (an hour or so it took me) then I extracted, clicked on setup and it didn't work. It said something about "Setup from the original location" or something and I was highly confused.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.