How to compile code C/C++ in Netbeans

This is a discussion on How to compile code C/C++ in Netbeans within the C++ Programming forums, part of the General Programming Boards category; Netbeans is intergrated C/C++ in their IDE.But I can't compile C/C++ file.It informed that: Running "make -f main CONF=Debug" in ...

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    52

    How to compile code C/C++ in Netbeans

    Netbeans is intergrated C/C++ in their IDE.But I can't compile C/C++ file.It informed that:

    Running "make -f main CONF=Debug" in E:\School\JAVA\thu

    'make' is not recognized as an internal or external command,

    operable program or batch file.


    Build failed. Exit value 1.

    Code:
    #include <iostream>
    #include <fstream>
    using namespace::std; 
    
    
    int main(void)
    {
        ofstream outputfile("thu.txt",ios::out);
        if(!outputfile){
            cerr<<"File not found";
            exit(1);
        }
        
        cout<<"Name, Account";
        cout<<"Input End of file";
        itn account;
        char name[30];
        float balance;
        while (cin>>account>>name>>balance){
            outputfile <<account<<' '<<name
                        <<' ' <<balance<<'\n';
            cout<<"?";
        }
        return 0;
    }
    Most of file I always had this errors.Although when I use other compilers,it is true..Please help me thanks very much.... Example "Hello program"....

  2. #2
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    That means you don't have make install on your computer and that is what Net Beans whats... look into MinGW and all the tools that you can get along with it.

  3. #3
    Registered Luser risby's Avatar
    Join Date
    Jun 2006
    Posts
    72
    Quote Originally Posted by zaracattle
    Netbeans is intergrated C/C++ in their IDE.But I can't compile C/C++ file.It informed that:

    Running "make -f main CONF=Debug" in E:\School\JAVA\thu
    'make' is not recognized as an internal or external command,
    operable program or batch file.
    Build failed. Exit value 1.
    A couple of weeks ago I was checking to see if there was a more recent java development kit from Sun and I found Netbeans 5.0. I've not yet played around with it but it is for Java development not C or C++. I've just checked again and now I see that there is a beta version 5.5 that has available with it a C/C++ pack.

    So, my questions are:
    are you sure you have the new beta version and the C/C++ pack installed?
    are you using the command line, and if so, why as it is a graphical interface?
    ===
    Don't grumble about what you can't have;
    be grateful you don't get what you deserve.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    52
    I installed C/C++ pack,and installed the new beta version,but the compiler always had this error.

  5. #5
    Registered User
    Join Date
    Sep 2006
    Posts
    52
    Quote Originally Posted by Wraithan
    That means you don't have make install on your computer and that is what Net Beans whats... look into MinGW and all the tools that you can get along with it.
    Please type more clearly...I don't understand..how to configure MinGw,where it is in Netbeans?...

  6. #6
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    It's not part of NetBeans, which is why you don't have it. Google for it and install it. Set up your PATH correctly, and it ought to work.
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code won't compile
    By monkles in forum C Programming
    Replies: 3
    Last Post: 05-28-2009, 01:45 PM
  2. Compile Errors in my Code. Can anyone help?
    By DGLaurynP in forum C Programming
    Replies: 1
    Last Post: 10-06-2008, 09:36 AM
  3. This code won't compile in Red Hat Linux 9
    By array in forum Linux Programming
    Replies: 7
    Last Post: 04-27-2004, 06:30 AM
  4. << !! Posting Code? Read this First !! >>
    By kermi3 in forum Linux Programming
    Replies: 0
    Last Post: 10-14-2002, 01:30 PM
  5. How do they compile code for an OS ?
    By Nutshell in forum A Brief History of Cprogramming.com
    Replies: 49
    Last Post: 03-27-2002, 11:16 PM

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