473,748 Members | 3,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems Compiling Dev C++ 4.9.9.2

1 New Member
Can anybody help me understand what i'm doing wrong or what I'm missing? Is there anyother good and commendable C++ program I can use (free) from the internet like Dev C++? I'm having trouble doing basic compiling on this new Dev C++, when i try to print something like:

#include<iostre am.h>
using namespace std;

int main ()
{
cout << "Hello to the world" << endl;
system("PAUSE")
return 0;
}


It doesnt let me, it gives me these errors:

Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Documen ts and Settings\Andre Marin\Desktop\U ntitled1.cpp" -o "C:\Documen ts and Settings\Andre Marin\Desktop\U ntitled1.exe" -I"C:\Dev-Cpp\include\c++ " -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
C:\Documents and Settings\Andre Marin\Desktop\U ntitled1.cpp:1: 21: error: iostream.h: No such file or directory

C:\Documents and Settings\Andre Marin\Desktop\U ntitled1.cpp: In function 'int main()':
C:\Documents and Settings\Andre Marin\Desktop\U ntitled1.cpp:6: error: 'cout' was not declared in this scope
C:\Documents and Settings\Andre Marin\Desktop\U ntitled1.cpp:6: error: 'endl' was not declared in this scope
C:\Documents and Settings\Andre Marin\Desktop\U ntitled1.cpp:7: error: 'system' was not declared in this scope
C:\Documents and Settings\Andre Marin\Desktop\U ntitled1.cpp:8: error: expected `;' before 'return'

Execution terminated

And then when I try to do this compiling:

#include<iostre am>
using namespace std;

int main ()
{
cout << "Hello to the world" << endl;
system("PAUSE")
return 0;
}


It gives me about a hundred errors:

Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Documen ts and Settings\Andre Marin\Desktop\U ntitled1.cpp" -o "C:\Documen ts and Settings\Andre Marin\Desktop\U ntitled1.exe" -I"C:\Dev-Cpp\include\c++ " -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
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:\Documents and Settings\Andre Marin\Desktop\U ntitled1.cpp:1:
C:/Dev-Cpp/include/c++/bits/fpos.h:6: error: missing terminating " character

In file included from C:/Dev-Cpp/include/c++/bits/char_traits.h:4 6,
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:\Documents and Settings\Andre Marin\Desktop\U ntitled1.cpp:1:
C:/Dev-Cpp/include/c++/bits/fpos.h:6: error: missing terminating " character

In file included from C:/Dev-Cpp/include/c++/istream:45,
from C:/Dev-Cpp/include/c++/iostream:46,
from C:\Documents and Settings\Andre Marin\Desktop\U ntitled1.cpp:1:
C:/Dev-Cpp/include/c++/limits:48:29: error: bits/cpu_limits.h: No such file or directory
C:/Dev-Cpp/include/c++/bits/fpos.h: In function 'int main()':
C:/Dev-Cpp/include/c++/bits/fpos.h:6: error: 'cout' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/fpos.h:7: error: 'system' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/fpos.h:8: error: expected `;' before 'return'

C:/Dev-Cpp/include/c++/bits/fpos.h: In function 'int main()':
C:/Dev-Cpp/include/c++/bits/fpos.h:4: error: redefinition of 'int main()'
C:/Dev-Cpp/include/c++/bits/fpos.h:4: error: 'int main()' previously defined here
C:/Dev-Cpp/include/c++/bits/fpos.h:6: error: 'cout' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/fpos.h:7: error: 'system' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/fpos.h:8: error: expected `;' before 'return'
C:/Dev-Cpp/include/c++/bits/char_traits.h: At global scope:
C:/Dev-Cpp/include/c++/bits/char_traits.h:5 9: error: 'streampos' does not name a type
C:/Dev-Cpp/include/c++/bits/char_traits.h:6 0: error: 'streamoff' does not name a type
C:/Dev-Cpp/include/c++/bits/char_traits.h:6 1: error: 'mbstate_t' does not name a type
C:/Dev-Cpp/include/c++/bits/char_traits.h:1 13: error: 'streampos' does not name a type
C:/Dev-Cpp/include/c++/bits/char_traits.h:1 14: error: 'streamoff' does not name a type
C:/Dev-Cpp/include/c++/bits/char_traits.h:1 15: error: 'mbstate_t' does not name a type

C:/Dev-Cpp/include/c++/bits/char_traits.h: In static member function 'static int std::char_trait s<char>::eof()' :
C:/Dev-Cpp/include/c++/bits/char_traits.h:1 68: error: 'EOF' was not declared in this scope

C:/Dev-Cpp/include/bits/c++locale.h: In function 'int std::__convert_ from_v(char*, int, const char*, _Tv, int* const&, int)':
C:/Dev-Cpp/include/bits/c++locale.h:72: error: 'snprintf' is not a member of 'std'

C:/Dev-Cpp/include/c++/bits/basic_string.h: In member function 'void std::basic_stri ng<_CharT, _Traits, _Alloc>::_Rep:: _M_dispose(cons t _Alloc&)':
C:/Dev-Cpp/include/c++/bits/basic_string.h: 186: error: there are no arguments to '__exchange_and _add' that depend on a template parameter, so a declaration of '__exchange_and _add' must be available
C:/Dev-Cpp/include/c++/bits/basic_string.h: 186: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
C:/Dev-Cpp/include/c++/bits/basic_string.h: In member function '_CharT* std::basic_stri ng<_CharT, _Traits, _Alloc>::_Rep:: _M_refcopy()':
C:/Dev-Cpp/include/c++/bits/basic_string.h: 196: error: there are no arguments to '__atomic_add' that depend on a template parameter, so a declaration of '__atomic_add' must be available

C:/Dev-Cpp/include/c++/bits/localefwd.h: At global scope:
C:/Dev-Cpp/include/c++/bits/localefwd.h:128 : error: 'mbstate_t' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/localefwd.h:128 : error: template argument 3 is invalid

C:/Dev-Cpp/include/c++/bits/localefwd.h: In member function 'void std::locale::_I mpl::_M_add_ref erence()':
C:/Dev-Cpp/include/c++/bits/localefwd.h:322 : error: '__atomic_add' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/localefwd.h: In member function 'void std::locale::_I mpl::_M_remove_ reference()':
C:/Dev-Cpp/include/c++/bits/localefwd.h:327 : error: '__exchange_and _add' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/localefwd.h: In member function 'size_t std::locale::id ::_M_id() const':
C:/Dev-Cpp/include/c++/bits/localefwd.h:462 : error: '__exchange_and _add' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h: At global scope:

C:/Dev-Cpp/include/c++/bits/ios_base.h:178: error: '__ios_flags' was not declared in this scope

C:/Dev-Cpp/include/c++/bits/ios_base.h:179: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:180: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:181: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:182: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:183: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:184: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:185: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:186: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:187: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:188: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:189: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:190: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:191: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:192: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:193: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:194: error: '__ios_flags' was not declared in this scope

C:/Dev-Cpp/include/c++/bits/ios_base.h:195: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:199: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:200: error: '__ios_flags' was not declared in this scope

C:/Dev-Cpp/include/c++/bits/ios_base.h:201: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:206: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:207: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:208: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:209: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:210: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:211: error: '__ios_flags' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h:240: error: 'streamsize' does not name a type
C:/Dev-Cpp/include/c++/bits/ios_base.h:241: error: 'streamsize' does not name a type
C:/Dev-Cpp/include/c++/bits/ios_base.h:360: error: 'streamsize' does not name a type
C:/Dev-Cpp/include/c++/bits/ios_base.h:363: error: 'streamsize' does not name a type
C:/Dev-Cpp/include/c++/bits/ios_base.h:371: error: 'streamsize' does not name a type
C:/Dev-Cpp/include/c++/bits/ios_base.h:374: error: 'streamsize' does not name a type
C:/Dev-Cpp/include/c++/bits/ios_base.h: In member function 'void std::ios_base:: _Callback_list: :_M_add_referen ce()':
C:/Dev-Cpp/include/c++/bits/ios_base.h:261: error: '__atomic_add' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/ios_base.h: In member function 'int std::ios_base:: _Callback_list: :_M_remove_refe rence()':
C:/Dev-Cpp/include/c++/bits/ios_base.h:265: error: '__exchange_and _add' was not declared in this scope
C:/Dev-Cpp/include/c++/streambuf: At global scope:
C:/Dev-Cpp/include/c++/streambuf:55: error: expected constructor, destructor, or type conversion before '__copy_streamb ufs'

C:/Dev-Cpp/include/c++/streambuf:82: error: 'streamsize' does not name a type
C:/Dev-Cpp/include/c++/streambuf:137: error: expected ';' before '<' token
C:/Dev-Cpp/include/c++/streambuf:269: error: 'streamsize' has not been declared
C:/Dev-Cpp/include/c++/streambuf:287: error: 'streamsize' does not name a type
C:/Dev-Cpp/include/c++/streambuf:329: error: 'streamsize' does not name a type
C:/Dev-Cpp/include/c++/streambuf:344: error: 'streamsize' does not name a type
C:/Dev-Cpp/include/c++/streambuf:415: error: 'streamsize' has not been declared
C:/Dev-Cpp/include/c++/streambuf:432: error: 'streamsize' does not name a type
C:/Dev-Cpp/include/c++/streambuf:435: error: 'streamsize' does not name a type
C:/Dev-Cpp/include/c++/streambuf:464: error: 'streamsize' does not name a type

C:/Dev-Cpp/include/c++/bits/codecvt.h:213: error: 'mbstate_t' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/codecvt.h:213: error: template argument 3 is invalid

C:/Dev-Cpp/include/c++/bits/codecvt.h:214: error: 'mbstate_t' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/codecvt.h:214: error: template argument 3 is invalid

C:/Dev-Cpp/include/c++/bits/locale_facets.h :448: error: 'streamsize' has not been declared

C:/Dev-Cpp/include/c++/bits/locale_facets.h : In constructor 'std::numpunct_ byname<_CharT>: :numpunct_bynam e(const char*, size_t)':
C:/Dev-Cpp/include/c++/bits/locale_facets.h :564: error: there are no arguments to '_S_create_c_lo cale' that depend on a template parameter, so a declaration of '_S_create_c_lo cale' must be available
C:/Dev-Cpp/include/c++/bits/locale_facets.h :565: error: there are no arguments to '_M_initialize_ numpunct' that depend on a template parameter, so a declaration of '_M_initialize_ numpunct' must be available
C:/Dev-Cpp/include/c++/bits/locale_facets.h : In destructor 'virtual std::numpunct_b yname<_CharT>:: ~numpunct_bynam e()':
C:/Dev-Cpp/include/c++/bits/locale_facets.h :571: error: there are no arguments to '_S_destroy_c_l ocale' that depend on a template parameter, so a declaration of '_S_destroy_c_l ocale' must be available

C:/Dev-Cpp/include/c++/bits/locale_facets.h : In constructor 'std::collate_b yname<_CharT>:: collate_byname( const char*, size_t)':
C:/Dev-Cpp/include/c++/bits/locale_facets.h :928: error: '_M_c_locale_co llate' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/locale_facets.h :928: error: '_S_c_locale' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/locale_facets.h :929: error: there are no arguments to '_S_destroy_c_l ocale' that depend on a template parameter, so a declaration of '_S_destroy_c_l ocale' must be available
C:/Dev-Cpp/include/c++/bits/locale_facets.h :930: error: '_M_c_locale_co llate' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/locale_facets.h :930: error: there are no arguments to '_S_create_c_lo cale' that depend on a template parameter, so a declaration of '_S_create_c_lo cale' must be available
C:/Dev-Cpp/include/c++/bits/locale_facets.h : In constructor 'std::moneypunc t_byname<_CharT , _Intl>::moneypu nct_byname(cons t char*, size_t)':
C:/Dev-Cpp/include/c++/bits/locale_facets.h :1520: error: there are no arguments to '_S_create_c_lo cale' that depend on a template parameter, so a declaration of '_S_create_c_lo cale' must be available
C:/Dev-Cpp/include/c++/bits/locale_facets.h :1521: error: there are no arguments to '_M_initialize_ moneypunct' that depend on a template parameter, so a declaration of '_M_initialize_ moneypunct' must be available
C:/Dev-Cpp/include/c++/bits/locale_facets.h : In destructor 'virtual std::moneypunct _byname<_CharT, _Intl>::~moneyp unct_byname()':
C:/Dev-Cpp/include/c++/bits/locale_facets.h :1527: error: there are no arguments to '_S_destroy_c_l ocale' that depend on a template parameter, so a declaration of '_S_destroy_c_l ocale' must be available

C:/Dev-Cpp/include/bits/messages_member s.h: At global scope:
C:/Dev-Cpp/include/bits/messages_member s.h:38: error: redefinition of 'std::messages< _CharT>::messag es(size_t)'
C:/Dev-Cpp/include/c++/bits/locale_facets.h :1639: error: 'std::messages< _CharT>::messag es(size_t)' previously declared here
C:/Dev-Cpp/include/bits/messages_member s.h: In constructor 'std::messages< _CharT>::messag es(size_t)':
C:/Dev-Cpp/include/bits/messages_member s.h:40: error: there are no arguments to '_S_get_c_local e' that depend on a template parameter, so a declaration of '_S_get_c_local e' must be available
C:/Dev-Cpp/include/bits/messages_member s.h: At global scope:
C:/Dev-Cpp/include/bits/messages_member s.h:43: error: redefinition of 'std::messages< _CharT>::messag es(int*, const char*, size_t)'
C:/Dev-Cpp/include/c++/bits/locale_facets.h :1645: error: 'std::messages< _CharT>::messag es(int*, const char*, size_t)' previously declared here
C:/Dev-Cpp/include/bits/messages_member s.h: In constructor 'std::messages< _CharT>::messag es(int*, const char*, size_t)':
C:/Dev-Cpp/include/bits/messages_member s.h:45: error: there are no arguments to '_S_get_c_local e' that depend on a template parameter, so a declaration of '_S_get_c_local e' must be available
C:/Dev-Cpp/include/bits/messages_member s.h: At global scope:
C:/Dev-Cpp/include/bits/messages_member s.h:55: error: redefinition of 'std::messages< _CharT>::~messa ges()'
C:/Dev-Cpp/include/c++/bits/locale_facets.h :1670: error: 'virtual std::messages<_ CharT>::~messag es()' previously declared here
C:/Dev-Cpp/include/bits/messages_member s.h:76: error: invalid use of undefined type 'struct std::messages_b yname<_CharT>'
C:/Dev-Cpp/include/c++/bits/localefwd.h:176 : error: declaration of 'struct std::messages_b yname<_CharT>'
C:/Dev-Cpp/include/bits/messages_member s.h:76: error: template definition of non-template 'std::messages_ byname<_CharT>: :messages_bynam e(const char*, size_t)'

C:/Dev-Cpp/include/c++/bits/locale_facets.h : In constructor 'std::messages_ byname<_CharT>: :messages_bynam e(const char*, size_t)':
C:/Dev-Cpp/include/c++/bits/locale_facets.h :1756: error: '_M_name_messag es' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/locale_facets.h :1757: error: '_M_c_locale_me ssages' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/locale_facets.h :1757: error: '_S_c_locale' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/locale_facets.h :1758: error: there are no arguments to '_S_destroy_c_l ocale' that depend on a template parameter, so a declaration of '_S_destroy_c_l ocale' must be available
C:/Dev-Cpp/include/c++/bits/locale_facets.h :1759: error: '_M_c_locale_me ssages' was not declared in this scope
C:/Dev-Cpp/include/c++/bits/locale_facets.h :1759: error: there are no arguments to '_S_create_c_lo cale' that depend on a template parameter, so a declaration of '_S_create_c_lo cale' must be available

C:/Dev-Cpp/include/c++/ostream: At global scope:
C:/Dev-Cpp/include/c++/ostream:161: error: 'streamsize' has not been declared

C:/Dev-Cpp/include/c++/istream:71: error: 'streamsize' does not name a type
C:/Dev-Cpp/include/c++/istream:147: error: 'streamsize' does not name a type
C:/Dev-Cpp/include/c++/istream:158: error: 'streamsize' has not been declared
C:/Dev-Cpp/include/c++/istream:161: error: 'streamsize' has not been declared
C:/Dev-Cpp/include/c++/istream:172: error: 'streamsize' has not been declared
C:/Dev-Cpp/include/c++/istream:175: error: 'streamsize' has not been declared
C:/Dev-Cpp/include/c++/istream:179: error: expected ';' before '(' token
C:/Dev-Cpp/include/c++/istream:185: error: 'streamsize' has not been declared

C:/Dev-Cpp/include/c++/istream:187: error: 'streamsize' does not name a type

C:/Dev-Cpp/include/c++/istream: In constructor 'std::basic_ist ream<_CharT, _Traits>::basic _istream(std::b asic_streambuf< _CharT, _Traits>*)':
C:/Dev-Cpp/include/c++/istream:79: error: '_M_gcount' was not declared in this scope
C:/Dev-Cpp/include/c++/istream:79: error: there are no arguments to 'streamsize' that depend on a template parameter, so a declaration of 'streamsize' must be available
C:/Dev-Cpp/include/c++/istream: In destructor 'virtual std::basic_istr eam<_CharT, _Traits>::~basi c_istream()':
C:/Dev-Cpp/include/c++/istream:84: error: '_M_gcount' was not declared in this scope
C:/Dev-Cpp/include/c++/istream:84: error: there are no arguments to 'streamsize' that depend on a template parameter, so a declaration of 'streamsize' must be available
C:\Documents and Settings\Andre Marin\Desktop\U ntitled1.cpp: In function 'int main()':
C:\Documents and Settings\Andre Marin\Desktop\U ntitled1.cpp:4: error: redefinition of 'int main()'
C:/Dev-Cpp/include/c++/bits/fpos.h:4: error: 'int main()' previously defined here
C:\Documents and Settings\Andre Marin\Desktop\U ntitled1.cpp:4: error: redefinition of 'int main()'
C:/Dev-Cpp/include/c++/bits/fpos.h:4: error: 'int main()' previously defined here
C:/Dev-Cpp/include/c++/bits/basic_ios.h: At global scope:
C:/Dev-Cpp/include/c++/bits/basic_ios.h: In instantiation of 'std::basic_ios <char, std::char_trait s<char> >':
C:/Dev-Cpp/include/c++/iosfwd:61: instantiated from 'std::basic_ost ream<char, std::char_trait s<char> >'
C:\Documents and Settings\Andre Marin\Desktop\U ntitled1.cpp:6: instantiated from here
C:/Dev-Cpp/include/c++/bits/basic_ios.h:53: error: no type named 'pos_type' in 'struct std::char_trait s<char>'
C:/Dev-Cpp/include/c++/bits/basic_ios.h:54: error: no type named 'off_type' in 'struct std::char_trait s<char>'
C:/Dev-Cpp/include/c++/ostream: In instantiation of 'std::basic_ost ream<char, std::char_trait s<char> >':
C:\Documents and Settings\Andre Marin\Desktop\U ntitled1.cpp:6: instantiated from here
C:/Dev-Cpp/include/c++/ostream:57: error: no type named 'pos_type' in 'struct std::char_trait s<char>'
C:/Dev-Cpp/include/c++/ostream:58: error: no type named 'off_type' in 'struct std::char_trait s<char>'
C:/Dev-Cpp/include/c++/ostream:168: error: no type named 'pos_type' in 'struct std::char_trait s<char>'
C:/Dev-Cpp/include/c++/ostream:171: error: no type named 'pos_type' in 'struct std::char_trait s<char>'
C:/Dev-Cpp/include/c++/ostream:174: error: no type named 'off_type' in 'struct std::char_trait s<char>'
C:\Documents and Settings\Andre Marin\Desktop\U ntitled1.cpp: In function 'int main()':
C:\Documents and Settings\Andre Marin\Desktop\U ntitled1.cpp:8: error: expected `;' before 'return'

Execution terminated



what is going on, what can I do, how can i change it, can i substitute this with any other good C++ software or programs? i'm relatively new at this and need this kind of program for my class. thank you
Sep 2 '07 #1
2 11287
JosAH
11,448 Recognized Expert MVP
Strange; I downloaded the same version and didn't do anything special and it
worked right out of the box. How did you install it?

kind regards,

Jos
Sep 2 '07 #2
Ganon11
3,652 Recognized Expert Specialist
The only thing I see wrong with the code sections is you've neglected a ';' at the end of your system("PAUSE") ; statement. Try adding that and recompiling. That should work, Dev C++ 4.9.9.2 is the compiler I learned C++ on, and it never did anything crazy like this to me...
Sep 2 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
6910
by: Andres Rosado-Sepulveda | last post by:
Hello, I'm having trouble compiling PHP 4.3.4 on Solaris 8. This is the error message it is showing: -- start -- Undefined first referenced symbol in file php_parse_date ext/standard/datetime.o ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
2
2055
by: Olaf Meyer | last post by:
I'm having some problems compiling Python 2.3.3 on HP-UX (B.11.00). I've tried sevral different options for the configure script (e.g. enabling/disabling gcc, aCC) but I always get the same problem during the final linking stage. Several PyThread_* symbols are undefined (for details see the output below). In order to get DCOracle2 support working I've also set the LDFLAGS environment variable to "-lpthread -lcl" (as mentioned in the...
10
3682
by: stu7 | last post by:
+ I have some problems with QT. I know that it is supposed to be useful for compiling cross-platform versions of a program, and that it has something to do with C++ ...not a problem so far. But - if QT compilies a program for Linux (my interest)... why do I have to install QT (again) to use it ? It seems it hasn't compiled -FOR- Linux at all, but is only using the Linux framework to run itself on_ acting more like a virus than a...
11
3202
by: Arturo DiDonna | last post by:
Hello everyone. I am trying to compile someone else code and I am stuck with compilation problems using the g++ 3.3 compiler. Basically, when compiling the following code, I get this error message: parsefcns.cc: In function `void get_token(std::ifstream*, char**)': parsefcns.cc:57: error: cannot convert `std::basic_string<char, std::char_traits<char>, std::allocator<char> >' to `char*' in assignment make: *** Error 1
15
425
by: Rob Ratcliff | last post by:
I'm compiling the latest version of a CORBA ORB called MICO on a Cray X1. It makes heavy use of templates and namespaces. Up until the link step, the C++ source code compiled flawlessly. But, when it tried to link, I got the attached warnings and then an error. Any ideas why the linker wouldn't see the objects in the library? They look like pretty long names, so maybe there is some type of symbol length or mangling issue going on? The...
9
2044
by: robbie.carlton | last post by:
Hello! I've programmed in c a bit, but nothing very complicated. I've just come back to it after a long sojourn in the lands of functional programming and am completely stumped on a very simple function I'm trying to write. I'm writing a function that takes a string, and returns an array of strings which are the result of splitting the input on whitespace and parentheses (but the parentheses should also be included in the array as...
21
2965
by: matvdl | last post by:
I have a system that was originally developed in asp - the pages are saved in SQL (there are over 10,000 pages) and saved to a temp directory in the server when requested by a client. I have updated this system and changed the pages that are saved to the server as aspx - everything works fine and pages can be served - but Its not impossible for a single client to request 100 plus pages in one session - as each page is requested it is...
3
2334
by: Ryan Riehle | last post by:
Hi All! Trying to upgrade to Apache 2.0.49 and getting compile errors related to mod_auth_pgsql, any clue?: make: Entering directory `/usr/src/httpd-2.0.49' /usr/src/httpd-2.0.49/srclib/apr/libtool --silent --mode=link gcc -pthread -I/ =500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER I. -I/usr/src/httpd-2.0.49/os/unix -I/usr/src/httpd-2.0.49/server/mpm/prefork -I .49/modules/proxy
33
3028
by: wespvp | last post by:
When I try to run thread_test.c from the CVS tip, it hangs in an infinite CPU loop on both linux (RedHat AS 3.0, gcc 3.2.3) and Mac OS X 10.3.3 (gcc 3.3). I've also tried down to gcc 2.96 on Mac OS X. If I compile it with -g instead of -O2 on linux, it runs to completion and gives me: Add this to your template/$port file: STRERROR_THREADSAFE=yes
2
1605
by: ivan.pavlov | last post by:
I am running Debian/Linux unstable. Trying to upgrade packages depending on python (via aptitude) has started to give errors and leaves all packeges unconfigured. When I run dpkg --configure pyhton2.3 the following errors occur. Any advice on what to do? Setting up python2.3 (2.3.5-8) ... Compiling python modules in /usr/lib/python2.3 ... Compiling /usr/lib/python2.3/site-packages/srcb/generator.py ...
0
8989
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9537
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9243
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8241
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6795
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.