C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 03-26-2006, 10:02 PM   #1
Registered User
 
Join Date: Mar 2006
Posts: 40
I can't get this new compiler to work.

Since I couldn't get Dev-C++ to work again (I went so far as to uninstall, delete every remnant of dev-c++ related stuff left over that I could see, reboot, defrag, reboot, redownload the setup again but from a different mirror, install to a different directory than the one I installed to before, create a new project whose only code was
Code:
int main(int argc, char *argv[])
{
  return 0;
}
and then compile that, and it would still crash at that point. See my last thread for more details on that.) I decided to just try a different compiler.

I am now trying to use the Digital Mars compiler, but with no success. From what I read in its readme, it appears to be a command line compiler rather than an IDE, and it tells how to use it. I tried to do what it said, but it just gave a one-line example of how to use it. Whenever I try to use it, it says "Fatal error: unable to open input file 'test' --- errorlevel 1"

So I have a few questions.

Is Digital Mars a good compiler worth using?
How do I use it to compile, link and build? Do I even have to go through each step, or will it do the whole process in one simple command like Dev-C++ did?
Is there any place where I can find more information on Digital Mars and how to use it? Its own site offers little help.
Loduwijk is offline   Reply With Quote
Old 03-26-2006, 10:58 PM   #2
Devil's Advocate
 
SlyMaelstrom's Avatar
 
Join Date: May 2004
Location: Out of scope
Posts: 3,734
I've never used the digital mars compiler, but if you want to settle for a command line compiler, you can download GNU's GCC (g++ for C++ compiling) which is about at standard as it gets and it's what most of the major players would be using:

http://gcc.gnu.org/
__________________
Terms of Service
By quoting or replying directly to this post, you consent to the fact that all of the information in the post above is completely accurate and highly intelligent and no comments will be made towards its validity, thoughtlessness, and/or grammatical structure.

Violators will be prosecuted to the fullest extent of the law.
SlyMaelstrom is offline   Reply With Quote
Old 03-26-2006, 10:58 PM   #3
Registered User
 
Join Date: Mar 2006
Location: USA::Colorado
Posts: 148
Well, the problem is apparent.

You're missing a very important element with programming:

Code:
int main(int argc, char *argv[])
{
  return 0;
}
You're missing the
Code:
#include <iostream>

using namespace std;
**Put this just before your [main(int argc...)] statement

like
Code:
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
  return 0;
}
guitarist809 is offline   Reply With Quote
Old 03-26-2006, 11:00 PM   #4
Devil's Advocate
 
SlyMaelstrom's Avatar
 
Join Date: May 2004
Location: Out of scope
Posts: 3,734
Quote:
Originally Posted by guitarist809
Well, the problem is apparent.

You're missing a very important element with programming:
Why would you need <iostream> to run an empty main? That's not his problem. Also, it's worth assuming that he might have just ommitted the standard includes from his example.
__________________
Terms of Service
By quoting or replying directly to this post, you consent to the fact that all of the information in the post above is completely accurate and highly intelligent and no comments will be made towards its validity, thoughtlessness, and/or grammatical structure.

Violators will be prosecuted to the fullest extent of the law.
SlyMaelstrom is offline   Reply With Quote
Old 03-27-2006, 12:08 AM   #5
Registered User
 
Join Date: Mar 2006
Location: USA::Colorado
Posts: 148
yea, but I use the same complier as he, DEV-C++ the MinGW C++ Compliler. Everything works fine!
guitarist809 is offline   Reply With Quote
Old 03-27-2006, 12:09 AM   #6
Devil's Advocate
 
SlyMaelstrom's Avatar
 
Join Date: May 2004
Location: Out of scope
Posts: 3,734
No, reread his post. He uses the Digital Mars compiler. He couldn't get Dev-C++ to run. I appreciate your enthusiasm to answer questions, but be careful about giving incorrect information because you're still learning yourself. I already do plenty of that around here.
__________________
Terms of Service
By quoting or replying directly to this post, you consent to the fact that all of the information in the post above is completely accurate and highly intelligent and no comments will be made towards its validity, thoughtlessness, and/or grammatical structure.

Violators will be prosecuted to the fullest extent of the law.
SlyMaelstrom is offline   Reply With Quote
Old 03-27-2006, 03:38 AM   #7
Supermassive black hole
 
ahluka's Avatar
 
Join Date: Jul 2005
Location: South Wales, UK
Posts: 1,709
You could always use Open Watcom instead of Digital Mars. No reason, just if you want - has it's own IDE too.
__________________
Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

- Mike McShaffry
ahluka is offline   Reply With Quote
Old 03-29-2006, 06:42 AM   #8
Cat without Hat
 
CornedBee's Avatar
 
Join Date: Apr 2003
Posts: 8,439
Or download the command line versions of the Microsoft compiler. Or the command line Borland compiler, but the MS one is better. Or download Visual Studio 2005 Express, it's a free (as in beer) IDE with the newest MS compiler. (But no Platform SDK, so to develop Windows apps, you need to download and install that separately.)
__________________
All the buzzt!
CornedBee

"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
CornedBee is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why don't the tutorials on this site work on my computer? jsrig88 C++ Programming 3 05-15-2006 10:39 PM
Dev C++ Compiler, Indentation? Zeusbwr C++ Programming 3 10-21-2004 06:13 AM
lcc win32 compiler download problems GanglyLamb A Brief History of Cprogramming.com 5 08-01-2004 07:39 PM
The DJGPP compiler won't start Zahl Tech Board 9 11-20-2002 10:54 PM
Help with Borland c++ compiler!!! Unregistered C++ Programming 8 11-27-2001 10:53 PM


All times are GMT -6. The time now is 09:22 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22