![]() |
| | #1 |
| Registered User Join Date: Mar 2006
Posts: 40
| I can't get this new compiler to work. Code: int main(int argc, char *argv[])
{
return 0;
}
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 | |
| | #2 |
| Devil's Advocate 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 | |
| | #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;
}
Code: #include <iostream> using namespace std; like Code: #include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
return 0;
}
|
| guitarist809 is offline | |
| | #4 | |
| Devil's Advocate Join Date: May 2004 Location: Out of scope
Posts: 3,734
| Quote:
__________________ 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 | |
| | #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 | |
| | #6 |
| Devil's Advocate 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 | |
| | #7 |
| Supermassive black hole 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 | |
| | #8 |
| Cat without Hat 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 | |
![]() |
| Thread Tools | |
| Display Modes | |
|
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 |