Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,582 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,939 people online right now. Registration is fast and FREE... Join Now!




help a noob

 
Reply to this topicStart new topic

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

louisianaboy05
26 Sep, 2008 - 10:41 PM
Post #1

New D.I.C Head
*

Joined: 26 Sep, 2008
Posts: 4

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
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Help A Noob
26 Sep, 2008 - 10:56 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,213



Thanked: 217 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
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. smile.gif
User is offlineProfile CardPM
+Quote Post

louisianaboy05
RE: Help A Noob
26 Sep, 2008 - 11:07 PM
Post #3

New D.I.C Head
*

Joined: 26 Sep, 2008
Posts: 4

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;
}

User is offlineProfile CardPM
+Quote Post

chaoticabyss99
RE: Help A Noob
26 Sep, 2008 - 11:11 PM
Post #4

D.I.C Head
**

Joined: 14 Jun, 2008
Posts: 92


My Contributions
QUOTE(louisianaboy05 @ 27 Sep, 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;
}


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


Remove the "a" from "acout".

User is offlineProfile CardPM
+Quote Post

louisianaboy05
RE: Help A Noob
26 Sep, 2008 - 11:19 PM
Post #5

New D.I.C Head
*

Joined: 26 Sep, 2008
Posts: 4

would that be causing all the errors though? and what do i do after i erase that "a" Thanks very much
User is offlineProfile CardPM
+Quote Post

chaoticabyss99
RE: Help A Noob
26 Sep, 2008 - 11:31 PM
Post #6

D.I.C Head
**

Joined: 14 Jun, 2008
Posts: 92


My Contributions
QUOTE(louisianaboy05 @ 27 Sep, 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


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
CODE
#include <stdlib.h>
or
CODE
int argc, char *argv[]
. I think you can probably just do
CODE
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: 26 Sep, 2008 - 11:32 PM
User is offlineProfile CardPM
+Quote Post

louisianaboy05
RE: Help A Noob
26 Sep, 2008 - 11:36 PM
Post #7

New D.I.C Head
*

Joined: 26 Sep, 2008
Posts: 4

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
User is offlineProfile CardPM
+Quote Post

red_4900
RE: Help A Noob
27 Sep, 2008 - 01:21 AM
Post #8

Code Dreamers
****

Joined: 22 Feb, 2008
Posts: 820



Thanked: 11 times
My Contributions
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.
User is online!Profile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/3/08 12:36AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month