compilers-advice?

This is a discussion on compilers-advice? within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by DougDbug In the past (and maybe still) some of Microsoft's academic compilers were only for non-commercial use. ...

  1. #16
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    Quote Originally Posted by DougDbug
    In the past (and maybe still) some of Microsoft's academic compilers were only for non-commercial use. Some would generate an exe file that wouldn't even run unless Visual C++ was installed on the target machine!
    The academic version of VS 2003 .net is the same as the Pro edition with a couple more CDs thrown in the students and teachers.

  2. #17
    ~Team work is the best!~ wakish's Avatar
    Join Date
    Sep 2005
    Posts
    85
    ok..

    btw i just installed Dev version4 to experience it a bit..

    hey guys when i compile a simple code without using "using namespace std;", the codes compile with no error...but in vc++ 6.0 when i compile without that too, it says error!

    so what shud i conclude?or any explanation?

    Thnx!

    Kind Regards,
    wakish

  3. #18
    Disrupting the universe Mad_guy's Avatar
    Join Date
    Jun 2005
    Posts
    258
    In all honesty I don't see what the whole hype over Dev-C++ is about. The best feature of the whole thing is the package manager if you ask me. The main reason I don't use Dev-C++ is simply because the syntax highlighting is probably some of the worst I've ever seen. But it's great since you can get support for almost anything you want on the go.


    If you're working off of a Windows machine you will probably want to get something like Visual C++ or Visual Studio .NET since they are extremely robust and very very flexible.

    If you're looking into a open source or free compiler for Windows, then you want Open Watcom. Totally free, and has a lot of very useful tools that a windows programmer can use. If you don't like Open Watcom (it is a very highly picky compiler, it forces you to really use clean code styles) then you'll probably want to go for GCC instead.


    If you want an IDE for GCC or don't like the IDE for the compilers I mentioned (Open Watcoms' code editor isn't too hot if you ask me) then I recommend either Textpad or GNU Emacs. Emacs has more features than any other editor ever to exist, so it inheritly is very complex, but Textpad is extremely easy to use and has nice syntax highlighting.

    Quote Originally Posted by wakish
    ok..

    btw i just installed Dev version4 to experience it a bit..

    hey guys when i compile a simple code without using "using namespace std;", the codes compile with no error...but in vc++ 6.0 when i compile without that too, it says error!

    so what shud i conclude?or any explanation?

    Thnx!

    Kind Regards,
    wakish
    Since you're obviously new to C++ I will just say this: use using namespace std;, since later on it makes a lot more sense than it does when beginning the language.
    operating systems: mac os 10.6, debian 5.0, windows 7
    editor: back to emacs because it's more awesomer!!
    version control: git

    website: http://0xff.ath.cx/~as/

  4. #19
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,810
    What do you mean the syntax highlighting is off, It works fine for me.

    As far as comparing Dev-C++ and GCC they are basically the same compiler. Dev-C++ is just the IDE it uses MinGW which is a windows port of the GCC compiler system.

    If you can nab a free good version of VC++ go for it but if you are going to be paying for it just get Dev-C++ until you actually need all the "goodies" of VC++
    Woop?

  5. #20
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,761
    >hey guys when i compile a simple code without using "using namespace std;", the codes compile with
    >no error...but in vc++ 6.0 when i compile without that too, it says error!
    Posting your program and error messages helps.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  6. #21
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,157
    btw i just installed Dev version4 to experience it a bit..
    Dev-C++4 is outdated (and uses an outdated compiler set), you should download and install Dev-C++5. The current version is Dev-C++ 4.9.9.2, which is a beta of Dev-C++5.

    The outdated compiler set that Dev-C++4 uses is the reason why namespaces pose a problem to you.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #22
    ~Team work is the best!~ wakish's Avatar
    Join Date
    Sep 2005
    Posts
    85
    Quote Originally Posted by Salem
    >hey guys when i compile a simple code without using "using namespace std;", the codes compile with
    >no error...but in vc++ 6.0 when i compile without that too, it says error!
    Posting your program and error messages helps.

    here it is:
    Code:
    #include <iostream>
    #include <cstdlib>
    
    //using namespace std;   ***NOT INCLUDING IT IN CODE***
    
    int main()
    {
    
    	cout << "\nHi..this is a test msg!\n";
    
    
    	system("pause");
    
    	return EXIT_SUCCESS;
    }
    
    
    
    
    
    
    --------------------Configuration: test - Win32 Debug--------------------
    Compiling...
    test.cpp
     : error C2065: 'cout' : undeclared identifier
    
     : error C2297: '<<' : illegal, right operand has type 'char [21]'
    Error executing cl.exe.
    
    test.obj - 2 error(s), 0 warning(s)

    As i said when compiled without including "using namespace std;", i get error (as shown above) from vc++ 6.0 and NO error with dev 4.

    so if vc++ was to be "not so standard compliant", it shud not have shown this error msg. Right?

    plz can anyone comment on this, thanks!

    Regards,
    wakish

  8. #23
    Dae
    Dae is offline
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Quote Originally Posted by wakish
    here it is:
    Code:
    #include <iostream>
    #include <cstdlib>
    
    //using namespace std;   ***NOT INCLUDING IT IN CODE***
    
    int main()
    {
    
    	cout << "\nHi..this is a test msg!\n";
    
    
    	system("pause");
    
    	return EXIT_SUCCESS;
    }
    
    
    
    
    
    
    --------------------Configuration: test - Win32 Debug--------------------
    Compiling...
    test.cpp
     : error C2065: 'cout' : undeclared identifier
    
     : error C2297: '<<' : illegal, right operand has type 'char [21]'
    Error executing cl.exe.
    
    test.obj - 2 error(s), 0 warning(s)

    As i said when compiled without including "using namespace std;", i get error (as shown above) from vc++ 6.0 and NO error with dev 4.

    so if vc++ was to be "not so standard compliant", it shud not have shown this error msg. Right?

    plz can anyone comment on this, thanks!

    Regards,
    wakish
    Dev-Cpp should be giving you an error, did you read laserlight's post above?

    Thats a different kind of "not so standard compliant" vc++ is more strict sometimes, or changes rules slightly.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  9. #24
    ~Team work is the best!~ wakish's Avatar
    Join Date
    Sep 2005
    Posts
    85
    yeah, but i tried the same code with Dev, but to my dismay i did not get an expected error, that's y i'm asking..

  10. #25
    ~Team work is the best!~ wakish's Avatar
    Join Date
    Sep 2005
    Posts
    85
    Quote Originally Posted by laserlight
    Dev-C++4 is outdated (and uses an outdated compiler set), you should download and install Dev-C++5. The current version is Dev-C++ 4.9.9.2, which is a beta of Dev-C++5.

    The outdated compiler set that Dev-C++4 uses is the reason why namespaces pose a problem to you.

    yeah, ok i understand..sry i misread the last time

    i will try the beta...

  11. #26
    ~Team work is the best!~ wakish's Avatar
    Join Date
    Sep 2005
    Posts
    85
    has anyone tried the free available version of : Microsoft Visual C++ Toolkit 2003 ??

    is it worth trying?

    for a quiclk glance at it:
    http://www.microsoft.com/downloads/d...displaylang=en

    and i already have vc++ 6.0(integrated in visual studio) installed on my machine, if i shud install the Microsoft Visual C++ Toolkit 2003, shud i uninstall the vc++6.0 first?


    tnx again for ur attention!

    Regards!

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Builder Comparison
    By ryanlcs in forum Tech Board
    Replies: 14
    Last Post: 08-20-2006, 10:56 AM
  2. girl friend advice (prob. the wrong place)
    By B0bDole in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 10-22-2004, 07:38 PM
  3. Compilers for Windows
    By LegendsEnd in forum Windows Programming
    Replies: 2
    Last Post: 03-26-2004, 08:03 AM
  4. Advice for Beginner??
    By hawghauler in forum C++ Programming
    Replies: 6
    Last Post: 06-01-2003, 06:33 AM
  5. Compilers, Compilers, Compilers
    By Stan100 in forum C++ Programming
    Replies: 11
    Last Post: 11-08-2002, 04:21 PM

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