help a noob

Hi I just recently bought a C++ for dummies and i am having problems w

Page 1 of 1

7 Replies - 898 Views - Last Post: 27 September 2008 - 02:21 AM Rate Topic: -----

#1 louisianaboy05  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 26-September 08

help a noob

Post icon  Posted 26 September 2008 - 11:41 PM

Hi I just recently bought a C++ for dummies and i am having problems with Dev c++ i install it and run the test and 70 errors pop up

Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Program Files\CPP-AIO-FD\Source\Book1\FirstProject\main.cpp" -o "C:\Program Files\CPP-AIO-FD\Source\Book1\FirstProject\main.exe" -fexceptions -fverbose-asm -pg -g3 -I"C:\Dev-Cpp\include" -I"C:\Dev-Cpp\include\c++" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
In file included from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/iostream:44:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/ios:44,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/iosfwd:44:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/iosfwd:45,
from C:/Dev-Cpp/include/c++/ios:44,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:

C:/Dev-Cpp/include/c++/bits/stringfwd.h:44:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/iosfwd:46,
from C:/Dev-Cpp/include/c++/ios:44,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,

from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/bits/fpos.h:44:24: bits/c++io.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/bits/fpos.h:45,
from C:/Dev-Cpp/include/c++/iosfwd:46,
from C:/Dev-Cpp/include/c++/ios:44,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/cwchar:49:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/iosfwd:46,
from C:/Dev-Cpp/include/c++/ios:44,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/bits/fpos.h:60: 'streamoff' is used as a type, but is
not defined as a type.

C:/Dev-Cpp/include/c++/bits/fpos.h:74: parse error before `__off'
C:/Dev-Cpp/include/c++/bits/fpos.h:75: missing ';' before right brace
C:/Dev-Cpp/include/c++/bits/fpos.h:77: semicolon missing after declaration of `
std::fpos<_StateT>'
C:/Dev-Cpp/include/c++/bits/fpos.h: In constructor
`std::fpos<_StateT>::fpos()':
C:/Dev-Cpp/include/c++/bits/fpos.h:72: class `std::fpos<_StateT>' does not have
any field named `_M_off'
C:/Dev-Cpp/include/c++/bits/fpos.h: At global scope:
C:/Dev-Cpp/include/c++/bits/fpos.h:77: parse error before `(' token
C:/Dev-Cpp/include/c++/bits/fpos.h:77: ISO C++ forbids defining types within
return type
C:/Dev-Cpp/include/c++/bits/fpos.h:77: syntax error before `(' token
C:/Dev-Cpp/include/c++/bits/fpos.h:79: syntax error before `&' token
C:/Dev-Cpp/include/c++/bits/fpos.h:82: syntax error before `&' token
C:/Dev-Cpp/include/c++/bits/fpos.h:86: syntax error before `operator'
C:/Dev-Cpp/include/c++/bits/fpos.h:89: syntax error before `+=' token
C:/Dev-Cpp/include/c++/bits/fpos.h:94: syntax error before `operator'
C:/Dev-Cpp/include/c++/bits/fpos.h:97: syntax error before `-=' token
C:/Dev-Cpp/include/c++/bits/fpos.h:102: parse error before `&' token
C:/Dev-Cpp/include/c++/bits/fpos.h:103: non-member function `bool
operator==(...)' cannot have `const' method qualifier
C:/Dev-Cpp/include/c++/bits/fpos.h:103: `bool operator==(...)' must have an
argument of class or enumerated type
C:/Dev-Cpp/include/c++/bits/fpos.h:103: `bool operator==(...)' must take
exactly two arguments
C:/Dev-Cpp/include/c++/bits/fpos.h: In function `bool operator==(...)':
C:/Dev-Cpp/include/c++/bits/fpos.h:103: `_M_off' undeclared (first use this
function)
C:/Dev-Cpp/include/c++/bits/fpos.h:103: (Each undeclared identifier is reported
only once for each function it appears in.)
C:/Dev-Cpp/include/c++/bits/fpos.h:103: `__pos' undeclared (first use this
function)

C:/Dev-Cpp/include/c++/bits/fpos.h: At global scope:
C:/Dev-Cpp/include/c++/bits/fpos.h:106: parse error before `&' token
C:/Dev-Cpp/include/c++/bits/fpos.h:107: non-member function `bool

operator!=(...)' cannot have `const' method qualifier
C:/Dev-Cpp/include/c++/bits/fpos.h:107: `bool operator!=(...)' must have an
argument of class or enumerated type
C:/Dev-Cpp/include/c++/bits/fpos.h:107: `bool operator!=(...)' must take
exactly two arguments
C:/Dev-Cpp/include/c++/bits/fpos.h:110: parse error before `)' token
C:/Dev-Cpp/include/c++/bits/fpos.h:113: `streamoff' was not declared in this
scope
C:/Dev-Cpp/include/c++/bits/fpos.h:113: parse error before `)' token
C:/Dev-Cpp/include/c++/bits/fpos.h: In function `void _M_position(...)':
C:/Dev-Cpp/include/c++/bits/fpos.h:113: `__off' undeclared (first use this
function)

C:/Dev-Cpp/include/c++/bits/fpos.h: At global scope:
C:/Dev-Cpp/include/c++/bits/fpos.h:114: parse error before `}' token
C:/Dev-Cpp/include/c++/bits/fpos.h:117: syntax error before `;' token

In file included from C:/Dev-Cpp/include/c++/ios:46,
from C:/Dev-Cpp/include/c++/ostream:45,

from C:/Dev-Cpp/include/c++/iostream:45,
from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/bits/char_traits.h:59: parse error before `;' token

C:/Dev-Cpp/include/c++/bits/char_traits.h:60: parse error before `;' token
C:/Dev-Cpp/include/c++/bits/char_traits.h:113: parse error before `;' token
C:/Dev-Cpp/include/c++/bits/char_traits.h:114: parse error before `;' token

C:/Dev-Cpp/include/c++/bits/char_traits.h: In static member function `static
int std::char_traits<char>::eof()':
C:/Dev-Cpp/include/c++/bits/char_traits.h:168: `EOF' undeclared (first use this
function)

In file included from C:/Dev-Cpp/include/c++/ios:47,
from C:/Dev-Cpp/include/c++/ostream:45,

from C:/Dev-Cpp/include/c++/iostream:45,
from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/cstdio:49:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/bits/localefwd.h:45:28: bits/c++config.h: No such file or directory
C:/Dev-Cpp/include/c++/bits/localefwd.h:46:80: bits/c++locale.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/bits/localefwd.h:48,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,

from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/cctype:48:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/string:45:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/memory:54,
from C:/Dev-Cpp/include/c++/string:48,
from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/bits/stl_algobase.h:64:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/bits/stl_algobase.h:67,
from C:/Dev-Cpp/include/c++/memory:54,
from C:/Dev-Cpp/include/c++/string:48,
from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/cstdlib:49:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/bits/stl_algobase.h:72,
from C:/Dev-Cpp/include/c++/memory:54,
from C:/Dev-Cpp/include/c++/string:48,
from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/bits/type_traits.h:54:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/bits/stl_iterator_base_funcs.h:68,
from C:/Dev-Cpp/include/c++/bits/stl_algobase.h:74,
from C:/Dev-Cpp/include/c++/memory:54,
from C:/Dev-Cpp/include/c++/string:48,
from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/bits/concept_check.h:40:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/bits/stl_alloc.h:86,
from C:/Dev-Cpp/include/c++/memory:55,
from C:/Dev-Cpp/include/c++/string:48,

from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/bits/stl_threads.h:52:23: bits/gthr.h: No such file or directory

In file included from C:/Dev-Cpp/include/c++/bits/stl_alloc.h:86,
from C:/Dev-Cpp/include/c++/memory:55,
from C:/Dev-Cpp/include/c++/string:48,
from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/bits/stl_threads.h: At global scope:
C:/Dev-Cpp/include/c++/bits/stl_threads.h:69: '__gthread_mutex_t' is used as a
type, but is not defined as a type.
C:/Dev-Cpp/include/c++/bits/stl_threads.h:79:2: #error __GTHREAD_MUTEX_INIT or __GTHREAD_MUTEX_INIT_FUNCTION should be defined by gthr.h abstraction layer, report problem to libstdc++@gcc.gnu.org.
C:/Dev-Cpp/include/c++/bits/stl_threads.h: In member function `void
std::_Refcount_Base::_M_incr()':
C:/Dev-Cpp/include/c++/bits/stl_threads.h:86: `_M_ref_count_lock' undeclared
(first use this function)
C:/Dev-Cpp/include/c++/bits/stl_threads.h:86: `__gthread_mutex_lock' undeclared
(first use this function)
C:/Dev-Cpp/include/c++/bits/stl_threads.h:88: `__gthread_mutex_unlock'
undeclared (first use this function)
C:/Dev-Cpp/include/c++/bits/stl_threads.h: At global scope:
C:/Dev-Cpp/include/c++/bits/stl_threads.h:158: '__gthread_mutex_t' is used as a
type, but is not defined as a type.
C:/Dev-Cpp/include/c++/bits/stl_threads.h: In member function `void
std::_STL_mutex_lock::_M_acquire_lock()':

C:/Dev-Cpp/include/c++/bits/stl_threads.h:192: `_M_lock' undeclared (first use
this function)

In file included from C:/Dev-Cpp/include/c++/memory:55,
from C:/Dev-Cpp/include/c++/string:48,
from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,

from C:/Program Files/CPP-AIO-FD/Source/Book1/FirstProject/main.cpp:1:
C:/Dev-Cpp/include/c++/bits/stl_alloc.h: At global scope:
C:/Dev-Cpp/include/c++/bits/stl_alloc.h:575: syntax error before `;' token

C:/Dev-Cpp/include/c++/bits/stl_alloc.h:575: confused by earlier errors, bailing out

Execution terminated
HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 Thanks a lot

Is This A Good Question/Topic? 0
  • +

Replies To: help a noob

#2 Martyr2  Icon User is online

  • Programming Theoretician
  • member icon

Reputation: 4316
  • View blog
  • Posts: 12,094
  • Joined: 18-April 07

Re: help a noob

Posted 26 September 2008 - 11:56 PM

Here is a few tips to help you out... first of all, always show the code you used (in code tags) so we can see what you wrote to generate your errors. The second tip is that with C++ it can be a bit picky, so it will report like 10 errors for actually one simple error. Knowing this, always start at the top of your error list and focus on the first error and work your way down. Solving the first error could knock out half that list.

Now as for the errors you show there, the first error is saying that it can't find an include file. Include files are files that are brought into the program to define objects, structures, functions etc. Simply needing one of these external include files and not finding it can generate a significant number of errors.

This goes back to the first point, show us the code you used and we can help pinpoint what file you are missing (or even perhaps misspelled... which too can lead to the compiler not finding the file).

We can then help you out better once we have seen what you have written. :)
Was This Post Helpful? 0
  • +
  • -

#3 louisianaboy05  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 26-September 08

Re: help a noob

Posted 27 September 2008 - 12:07 AM

Marytr thank you so much I am just starting off i want to get microsoft certified and maybe major in computer science and find all this code interesting but I live in a rural redneck town in Kentucky and have no guidance If there was a way i could message you or email you that would be extremely helpful. Maybe you could tutor me haha you would proably be way to busy but heres what pops up. This is my first project that im suppose to complete in the Dummies book Thanks
#include <iostream>
#include <stdlib.h>

using namespace std;

int main(int argc, char *argv[])
{
acout << "Hello, I am your computer talking." << endl;
system("PAUSE");
return 0;
}
Was This Post Helpful? 0
  • +
  • -

#4 chaoticabyss99  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 94
  • Joined: 14-June 08

Re: help a noob

Posted 27 September 2008 - 12:11 AM

View Postlouisianaboy05, on 27 Sep, 2008 - 12:07 AM, said:

Marytr thank you so much I am just starting off i want to get microsoft certified and maybe major in computer science and find all this code interesting but I live in a rural redneck town in Kentucky and have no guidance If there was a way i could message you or email you that would be extremely helpful. Maybe you could tutor me haha you would proably be way to busy but heres what pops up. This is my first project that im suppose to complete in the Dummies book Thanks
#include <iostream>
#include <stdlib.h>

using namespace std;

int main(int argc, char *argv[])
{
acout << "Hello, I am your computer talking." << endl;
system("PAUSE");
return 0;
}


One thing I see off the bat is
acout << "Hello, I am your computer talking." << endl;


Remove the "a" from "acout".
Was This Post Helpful? 0
  • +
  • -

#5 louisianaboy05  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 26-September 08

Re: help a noob

Posted 27 September 2008 - 12:19 AM

would that be causing all the errors though? and what do i do after i erase that "a" Thanks very much
Was This Post Helpful? 0
  • +
  • -

#6 chaoticabyss99  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 94
  • Joined: 14-June 08

Re: help a noob

Posted 27 September 2008 - 12:31 AM

View Postlouisianaboy05, on 27 Sep, 2008 - 12:19 AM, said:

would that be causing all the errors though? and what do i do after i erase that "a" Thanks very much


I don't know if that is the root cause of all the errors. I'm still trying to learn C++ myself. Also, I don't see why you would need
#include <stdlib.h>
or
int argc, char *argv[]
. I think you can probably just do
int main()


Try that out and see how it goes. Like I said, I'm still learning too.

Also, I've never used Dev C++. I've alwasy used MSVS C++.

This post has been edited by chaoticabyss99: 27 September 2008 - 12:32 AM

Was This Post Helpful? 0
  • +
  • -

#7 louisianaboy05  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 26-September 08

Re: help a noob

Posted 27 September 2008 - 12:36 AM

thanks chaotic but it still pops up as 70 i added you on msn my name is louisianaboy05@hotmail.com this is just right of the cd doing this could it be something with my windows im on xp perhaps its some kind of config i mus initialy do or something
Was This Post Helpful? 0
  • +
  • -

#8 red_4900  Icon User is offline

  • Code T(h)inkers
  • member icon

Reputation: 21
  • View blog
  • Posts: 1,119
  • Joined: 22-February 08

Re: help a noob

Posted 27 September 2008 - 02:21 AM

Or perhaps you're not configuring the IDE correctly?

I have only one advice. IDE is a beast. I don't see any logic for a beginner who just started programming to go straight using IDE.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1