Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to C++

Status
Not open for further replies.

cndcadams

IS-IT--Management
Feb 11, 2004
725
US
Teaching myself C++ during freetime. Dont' Laugh I am starting with C++ for dummies. Has GNU version C++

Started a class and in the book it tells me to create a simple C++ program but I am running into this error when I try to complie

no such file directory ENOENT

I am thinking this is do to the fact I have the GNU version and it may not have all the current ANSI/ISO standards as written. I will most likely buy Microsoft Visual Studio.Net.

Thanks in advance

Chris A
 
If you are serious about programming in C++ go ahead and look into getting Visual C++ or Visual Studio. It has an excellent developing environment and you won't regret it, unless of course you end up not liking programming.

I was able to get the GNU compiler that came with C++ for dumbies to run on my computer -- I just simply used Rhide. It does work, but the problem you have I am not sure for the solution. Maybe you could just re-follow the instructions and try it another time?

I had it working on Windows XP home.

-Bones
 
Thanks for the post. I have got the GNU working on other programs. I will work on getting Visual Studio thanks. Programmed in ADA 13 years ago. kicking myself that I did not stay with programming in college. Trying to get a job but my programming experience is the only thing holding me back from the jobs I want.

 
To say in all honesty, I haven't GNU C++ compiler. But it's too suspicious-looking common error (errno == ENOENT). May be that's all right with your compiler? Need more info...
 
> it may not have all the current ANSI/ISO standards as written

Realize that that's going to be true of any C++ compiler you use. The GNU C++ compiler is reasonably close to Standard, and should definitely be able to compile a simple program.

The problem most likely has nothing to do with the compiler not understanding your code. It sounds like it has to do with the compiler not being able to find some file it needs to operate; in other words, a broken installation. Maybe try reinstalling? Maybe you missed some instruction in the setup? Did you try getting the latest version on the compiler?
 
Thanks for all responses. After playing with things for a while I was getting all kinds of errors. I did not have time last night but will reinstall tonight. I also have a feeling that something is wrong with the setup.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top