Like Tree1Likes
  • 1 Post By AndrewHunter

Novice Programmer, having trouble. Netbeans/Cygwin

This is a discussion on Novice Programmer, having trouble. Netbeans/Cygwin within the C Programming forums, part of the General Programming Boards category; Hi, I'm new around here. Novice programmer, done a lot with Mathematica and a little with Java. Recently been trying ...

  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    2

    Novice Programmer, having trouble. Netbeans/Cygwin

    Name:  halp.jpg
Views: 333
Size:  77.3 KB

    Hi, I'm new around here. Novice programmer, done a lot with Mathematica and a little with Java. Recently been trying to teach myself C.

    Anyway, the issue is basically summed up in the picture. I don't know what is missing. Well, I know what is missing, but I don't know how to fix it.

    I have Netbeans and I installed Cygwin's C/C++ compiler. In Cygwin, there are an absurd number of packages for you to chose from, and I think I got all the ones I needed to program in C. I've done a few basic things (e.g. "Hello, world!") that worked fine. But I get this error saying that something is missing.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,602
    <conio.h> is a non-standard header file and you may not need it.
    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

  3. #3
    Registered User
    Join Date
    Sep 2011
    Posts
    2
    Quote Originally Posted by laserlight View Post
    <conio.h> is a non-standard header file and you may not need it.
    I was trying to create a list and set all of its elements to 0, and a website directed me to this. Should I just do it manually?

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,602
    What is your current program? We may be able to help you fix it.
    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

  5. #5
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by oninchowder View Post

    Hi, I'm new around here. Novice programmer, done a lot with Mathematica and a little with Java. Recently been trying to teach myself C.
    ...
    I have Netbeans and I installed Cygwin's C/C++ compiler.
    cygwin is a very non-standard environment. It's for advanced programmers who want a Linux like c++ environment on Windows. I'm going to suggest it's not your best learning tool if you are interested in actually learning C.

    I would recommend Pelles C instead. It's a C-99 standards driven compiler with a much simpler IDE and the best documentation (in the help file) I've seen. And it's free.

    Trust me on this, as a novice programmer you don't want to be struggling with a quirky, non-standard environment.

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,602
    I second CommonTater's assessment that "cygwin is a very non-standard environment". On the other hand, you managed to get the C compiler setup to compile C programs using Netbeans. Especially if you are comfortable with using Netbeans, I would say stick with the setup that you have now. Pelles C would have been good to avoid the hurdle of the setup, but now that you are past that, the C compiler available from Cygwin is reasonably standard compliant and suitable for learning C.
    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. #7
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by laserlight View Post
    I second CommonTater's assessment that "cygwin is a very non-standard environment". On the other hand, you managed to get the C compiler setup to compile C programs using Netbeans. Especially if you are comfortable with using Netbeans, I would say stick with the setup that you have now. Pelles C would have been good to avoid the hurdle of the setup, but now that you are past that, the C compiler available from Cygwin is reasonably standard compliant and suitable for learning C.
    Ok... lets see if we can't get past this... One of the big reasons I recommend Pelles C (for beginner and otherwise) is not "easy setup"... although setup is pretty easy. The main reasons are 1) C-99 standard compliance, 2) Lots of extra C libraries, 3) No C++ muppingsnarf to get in the way, 4) Unquestionably the best documentation of any compiler out there, and 5) a full set of resource tools including icon and image editors for GUI development.

    #4 wants special mention... How many compilers can you find where you have 100% library documentation supplied as an integral part of the IDE? Think about how many times I enjoin people to "look it up in your C Library Documentation"... think how often MinGW, Cygwin, LCC etc. users end up with a blank stare on their faces: "What C Library Documentation?". They ignore the suggestion because they don't have the first Idea what I'm talking about. In Pelles C it's as easy as pressing F1 ... it's right there. This is both a powerful learning aid and a helpful tool in every project. There are even help files available from their forums that will integrate Windows API help into the IDE so documentation on windows calls can be that easily available...

    As you well know, Lase, I've tried other compilers and even other languages... I always end up back on Pelles C... and always for the reasons I've just given. For example: My attempts to learn C++ were flat out destroyed by one simple thing: A near total lack of *accurate* and *compiler specific* documentation. Similarly the whole D escapade ended when I discovered the libraries were open sourced, barely documented and dripping full of crap nobody will ever use, and nobody had successfully created windows libraries for it... Always there is a reason behind where I keep ending up...

    And don't mistake Pelles C for some beginner's learning aide. It's a plenty serious optimizing compiler that procuces both 32 and 64 bit native executables for windows console and windows GUI.

    Trust me on this... If I found a better compiler, I'd be recommending it... but I haven't.
    Last edited by CommonTater; 09-13-2011 at 10:23 AM.

  8. #8
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    Back to the original question....

    Quote Originally Posted by oninchowder View Post
    I was trying to create a list and set all of its elements to 0, and a website directed me to this. Should I just do it manually?
    I am not sure what website you are using to study C, however if it mentions using conio.h then find a different one. We have a good set of tutorials here. Additionally, you could take a look at Teach yourself C in 21 days for another good "starter" tutorial.
    CommonTater likes this.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. from dev-c++ mingw to netbeans cygwin
    By yahn in forum C++ Programming
    Replies: 10
    Last Post: 01-14-2009, 07:18 AM
  2. NetBeans + Cygwin driving me insane
    By Del75 in forum C++ Programming
    Replies: 4
    Last Post: 08-17-2008, 05:03 AM
  3. Replies: 10
    Last Post: 06-17-2005, 10:00 PM
  4. [C++] Segmentation Fault {Novice C++ Programmer}
    By INFERNO2K in forum C++ Programming
    Replies: 24
    Last Post: 06-08-2005, 07:44 PM

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