Click here to Skip to main content
15,886,106 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: HeapAlloc Pin
miah alom15-Aug-07 12:17
miah alom15-Aug-07 12:17 
GeneralRe: HeapAlloc Pin
Richard Andrew x6416-Aug-07 17:03
professionalRichard Andrew x6416-Aug-07 17:03 
QuestionParallel port access in Windows XP [modified] Pin
shaleen415-Aug-07 8:31
shaleen415-Aug-07 8:31 
AnswerRe: Parallel port access in Windows XP Pin
Mark Salsbery15-Aug-07 9:13
Mark Salsbery15-Aug-07 9:13 
GeneralRe: Parallel port access in Windows XP Pin
led mike15-Aug-07 11:36
led mike15-Aug-07 11:36 
GeneralRe: Parallel port access in Windows XP Pin
Mark Salsbery15-Aug-07 12:21
Mark Salsbery15-Aug-07 12:21 
QuestionRe: Parallel port access in Windows XP Pin
mirispearl16-Aug-07 19:45
mirispearl16-Aug-07 19:45 
QuestionError while compiling a simple C++ program Pin
vkondar13-Aug-07 17:21
vkondar13-Aug-07 17:21 
hi,
when I tried to compile the following simple C++ program,

#include<iostream.h>

main()
{
cout << "Hello World!";
return 0;
}
got the error as

In file included from /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/backward/iostream.h:31,
from hello.cpp:1:
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
/tmp/cc3RakqC.o(.text+0xd): In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const'
/tmp/cc3RakqC.o(.text+0x60): In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned int) const'
/tmp/cc3RakqC.o(.text+0x9d): In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned int) const'
/tmp/cc3RakqC.o(.text+0xc8): In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned int) const'
/tmp/cc3RakqC.o(.text+0x121): In function `main':
: undefined reference to `std::cout'
/tmp/cc3RakqC.o(.text+0x126): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
/tmp/cc3RakqC.o(.text+0x152): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::ios_base::Init::Init()'
/tmp/cc3RakqC.o(.text+0x181): In function `__tcf_0':
: undefined reference to `std::ios_base::Init::~Init()'
/tmp/cc3RakqC.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status


I am using cc hello.cpp to compile the program

When I tried with the command g++ hello.cpp,got the message
In file included from /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/backward/iostream.h:31,
from hello.cpp:1:
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.

After using g++ hello.cpp for compilation,I ran a.out to see the output,but I got '-bash: a.out: command not found' error.

Please help me out in compiling this.


Regards,
Vasudha
AnswerRe: Error while compiling a simple C++ program Pin
George L. Jackson13-Aug-07 23:56
George L. Jackson13-Aug-07 23:56 
QuestionAbout inheritance Pin
Nandu_77b13-Aug-07 6:31
Nandu_77b13-Aug-07 6:31 
AnswerRe: About inheritance Pin
Luc Pattyn13-Aug-07 6:45
sitebuilderLuc Pattyn13-Aug-07 6:45 
GeneralRe: About inheritance Pin
Nandu_77b14-Aug-07 0:00
Nandu_77b14-Aug-07 0:00 
AnswerRe: About inheritance Pin
led mike13-Aug-07 7:02
led mike13-Aug-07 7:02 
GeneralRe: About inheritance Pin
George L. Jackson13-Aug-07 13:51
George L. Jackson13-Aug-07 13:51 
GeneralRe: About inheritance Pin
Nandu_77b14-Aug-07 0:03
Nandu_77b14-Aug-07 0:03 
GeneralRe: About inheritance Pin
led mike14-Aug-07 4:55
led mike14-Aug-07 4:55 
GeneralRe: About inheritance Pin
Nandu_77b24-Aug-07 4:29
Nandu_77b24-Aug-07 4:29 
Questionreal time matrix conversion Pin
Morad Kobi13-Aug-07 4:02
Morad Kobi13-Aug-07 4:02 
AnswerRe: real time matrix conversion Pin
Luc Pattyn13-Aug-07 5:51
sitebuilderLuc Pattyn13-Aug-07 5:51 
QuestionRe: real time matrix conversion Pin
George L. Jackson13-Aug-07 13:58
George L. Jackson13-Aug-07 13:58 
QuestionAccess controls from other modules of a program Pin
eugk12-Aug-07 23:31
eugk12-Aug-07 23:31 
AnswerRe: Access controls from other modules of a program Pin
mid=574113-Aug-07 5:38
mid=574113-Aug-07 5:38 
GeneralRe: Access controls from other modules of a program Pin
eugk13-Aug-07 8:40
eugk13-Aug-07 8:40 
GeneralRe: Access controls from other modules of a program Pin
mid=574113-Aug-07 9:12
mid=574113-Aug-07 9:12 
GeneralRe: Access controls from other modules of a program Pin
eugk13-Aug-07 12:02
eugk13-Aug-07 12:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.