Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Which is the best compiler?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
hxkid
Cheater
Reputation: 0

Joined: 09 Dec 2006
Posts: 44

PostPosted: Wed Nov 26, 2008 10:39 pm    Post subject: Which is the best compiler? Reply with quote

I want a compiler that's good to use (I'm learning so if its noob friendly even better)

Dev-C++ isn't working that well for me whenever I run my program it just comes up with a cmd and closes half a second later.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Nov 26, 2008 11:41 pm    Post subject: Re: Which is the best compiler? Reply with quote

Visual Studio 2008.

DevC++ is ancient, and out of date.

hxkid wrote:
I run my program it just comes up with a cmd and closes half a second later.


Also, this is a coding issue, not the compiler. Run it from the command line, or wait for user input in your program.
Back to top
View user's profile Send private message
hxkid
Cheater
Reputation: 0

Joined: 09 Dec 2006
Posts: 44

PostPosted: Wed Nov 26, 2008 11:57 pm    Post subject: Reply with quote

Running from the command line?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Nov 26, 2008 11:59 pm    Post subject: Reply with quote

start -> run -> cmd
Back to top
View user's profile Send private message
hxkid
Cheater
Reputation: 0

Joined: 09 Dec 2006
Posts: 44

PostPosted: Thu Nov 27, 2008 12:01 am    Post subject: Reply with quote

Do I just write the source in cmd or something?
Back to top
View user's profile Send private message
FullyAwesome
I post too much
Reputation: 0

Joined: 05 Apr 2007
Posts: 4438
Location: Land Down Under

PostPosted: Thu Nov 27, 2008 12:46 am    Post subject: Reply with quote

hxkid wrote:
Do I just write the source in cmd or something?


you open the command prompt and go to the directory of your file, example:

Code:
cd "directory"
"ApplicationName.exe"


the only reason it closes straight away, as slovach mentioned, is because the program is ending straight after it's done what it's supposed to do. opening at the command line, it will still end when it should, but you'd be able to see the output.

simple fix: i think in c++ it's "cin.get();" at the end of your output, that way the program will wait for user input.

also, get visual studio because it's a lot better and up-to-date.

_________________
Back to top
View user's profile Send private message MSN Messenger
hxkid
Cheater
Reputation: 0

Joined: 09 Dec 2006
Posts: 44

PostPosted: Thu Nov 27, 2008 10:02 am    Post subject: Reply with quote

Uh well visual studio won't let me compile for some reason I made a new source file but the compile button is gray and unclickable.
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Thu Nov 27, 2008 11:54 am    Post subject: Reply with quote

You can't just create a source file and compile, you gotta create a new project and add the source files to it.
Back to top
View user's profile Send private message
hxkid
Cheater
Reputation: 0

Joined: 09 Dec 2006
Posts: 44

PostPosted: Thu Nov 27, 2008 12:42 pm    Post subject: Reply with quote

Oh alright thanks but what project should I use?
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Thu Nov 27, 2008 1:12 pm    Post subject: Reply with quote

Win32 Console.
Back to top
View user's profile Send private message
hxkid
Cheater
Reputation: 0

Joined: 09 Dec 2006
Posts: 44

PostPosted: Thu Nov 27, 2008 1:40 pm    Post subject: Reply with quote

When I compile I get
fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Thu Nov 27, 2008 2:39 pm    Post subject: Reply with quote

When you create a new project, untick "Use precompiled headers" or simply make an empty project and add the main source file manually.

You can go to Settings -> Linker -> Precompiled Headers -> Not using precompiled headers.
Back to top
View user's profile Send private message
hxkid
Cheater
Reputation: 0

Joined: 09 Dec 2006
Posts: 44

PostPosted: Fri Nov 28, 2008 3:17 pm    Post subject: Reply with quote

Oh alright thanks
Back to top
View user's profile Send private message
crayzbeef
Expert Cheater
Reputation: 0

Joined: 21 Jan 2007
Posts: 101

PostPosted: Fri Nov 28, 2008 4:33 pm    Post subject: Reply with quote

Do NOT use dev c++ its outdated.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites