Advertisement

Dev C++ user needs help

Started by November 19, 2000 08:21 AM
55 comments, last by Slade 23 years, 4 months ago
cliffhawkens:

I have compiled dos programs without the dev file, but how do you link to the libarys and setup the compilers and project options without it? How do you set up the directory in which to execute the program from? How do you use multiple source files? The hard way? By passing switches to the compiler? Each time you run the Dev-C++ IDE? I don''t recommend it. You really should use a dev file for your progect. All well. As long as it works and your happy with it, I guess it''s okay.
I''m not going to say anymore on the subject. For now anyway.
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.
cliffhawkens:

I have compiled dos programs without the dev file, but how do you link to the libarys and setup the compilers and project options without it? How do you set up the directory in which to execute the program from? How do you use multiple source files? The hard way? By passing switches to the compiler? Each time you run the Dev-C++ IDE? I don''t recommend it. You really should use a dev file for your project. All well. As long as it works and your happy with it, I guess it''s okay.
I''m not going to say anymore on the subject. For now anyway.
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.
Advertisement
Why is that there twice?
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.
Prolly coz you clicked the button twice =o)

To include libraries w/out being in a project, you merely speicify a file-name in the library path in the "Compiler Options" like this:

Libraries Path: C:\Dev-C++\lib\; C:\Dev-C++\lib\mylibrary.a

As I remember, anywaze =o)
Tell me if it doesn't work...

CGI Joe, could you please e-mail me and tell me how to get DX8 working? I'm learning OGL right now, but I plan to go into DirectX soon...please help?

Edited by - cliffhawkens on December 5, 2000 11:58:16 PM
[email=erydo@gdnmail.net" style="color: #ff0000; text-decoration:none; cursor:help;](o= erydo =o)[/email]
Oh, and smart_idiot;
My school doesn''t allow non-staff pple to use the computers at all except for school studying, so we aren''t allowed to check our e-mail (i don''t know if you can), and I get kicked off if I ever go to GameDev at school, because it has the word "game" in it >_<

(o=   Cliff_Hawkens   =o)
[email=erydo@gdnmail.net" style="color: #ff0000; text-decoration:none; cursor:help;](o= erydo =o)[/email]
C''mon people, keep posting!
What tricks/tips/etc. do you have for the Dev-C++ setup?
(has anyone aside from CGI_Joe gotten DX working? How??)

(o=   Cliff_Hawkens   =o)
[email=erydo@gdnmail.net" style="color: #ff0000; text-decoration:none; cursor:help;](o= erydo =o)[/email]
Advertisement
Add me to the list of people that use Dev-C++ (the IDE)

I added this line to line #57 in Lesson 6:

*TextureImage = new AUX_RGBImageRec[1];

and then these lines:

delete[] TextureImage[0]->data;

delete[] TextureImage[0];

to replace these lines:

free(TextureImage[0]->data);

free(TextureImage[0]);

and I got it to load a bitmap
(along with the other changes already mentioned)

Can you post a link to any good DX sites for Dev-C++?

Thanks,
Blumojo
Joseph VanPelt
Lesson 22:
I had to change the // Load The Logo-Bitmaps and // Load The "Extension Enabled"-Logo (I included the lines so that you can search for them) if statements:

1. Insert the line:
int a;
after the line:
alpha=new char[4*Image->sizeX*Image->sizeY]; // Create Memory For RGBA8-Texture

2. Then take the int out of the line:
for (int a=0; asizeX*Image->sizeY; a++)
so that it looks like this:
for (a=0; asizeX*Image->sizeY; a++)


I am thinking about posting my project files and all when I get done porting everything over. Has anyone already done this? Is this a good idea?

Thanx,
Blumojo
Joseph VanPelt
For all those using DevC++ IDE (minGW compiler) if you go to:

Bloodshed - home of DevC++

There is a Resource Section link at the top of the page. Within that Resource Section are heaps of great links for all manner of useful stuff. Although i've not tested it myself, there is a set of tutorials at GamecodingUK that has information on getting dx8 up and running with DevC++. That link is also on bloodshed's Resource Pages.

As for openGL with DevC++ I have found that the best thing (IMHO) is to forget 3rd party libraries such as allegro as too many people have problems configuring them. Best just to stick with the core gl libraries ie. opengl32.lib glu32.lib (msvc++/bcc55 cmd line tools) and libglu32.a libopengl32.a (DevC++). For everything else NeHe's tutorials and his excellent links will provide information on things like loading different image types and how to use them. This may save you time in the long term - and make your code more portable between different (windows) compilers. This is, of course, only an opinion and you should do for yourself what is most comfortable and natural for you.

Edited by - Ken Fitlike on September 19, 2001 3:10:40 PM
Country: Scotland [not listed in the ''Country'' combobox].
I too use Dev-c++ (Am i the seventh coder?)


This topic is closed to new replies.

Advertisement