compilation error on Fedora 17 with gcc version - 4.7.2 20120921 (Red Hat 4.7.2-2)

2013-11-21 Thread Sharwan Joram
Hello , I'am trying to compile a small test program on my Linux box (fedora 17) with gcc version - 4.7.2 20120921 (Red Hat 4.7.2-2) but failing with following errors. #include using namespace std; int main() { cout<<"Hello World!\n"; cin.get(); } --

Re: Unexplained compilation error.

2013-03-15 Thread Robert Heller
Nevermind. I needed to use an additional (nested) namespace... At Fri, 15 Mar 2013 10:41:04 -0500 Robert Heller wrote: > > I have stared at this code fragment and I am not seeing the error. This > is from a piece of code that used to compile, but I am migragrating the > code from the deprecia

Unexplained compilation error.

2013-03-15 Thread Robert Heller
I have stared at this code fragment and I am not seeing the error. This is from a piece of code that used to compile, but I am migragrating the code from the depreciated hash_map to an unordered_map. There is *obviously* something wrong here, but I am just not seeing it. Begin te

Re: Compilation error

2009-07-21 Thread Thomas Maeder
zak100 writes: > Can somebody plz help me with this. Please next time post your code in human readable form. >From what I can tell from the unreadable form, it seems to lack a main() function. ___ help-gplusplus mailing list help-gplusplus@gnu.org htt

Compilation error

2009-07-21 Thread zak100
+; } else { vidmem[i]=*message; *message++; i++; vidmem[i]=WHITE_TXT; i++; } } return 1; } Can somebody plz help me with this. Zulfi. -- View this message in context: http://www.nabble.com/Compilation-error-tp24585311p24585311.html Sent from the gcc - Gnu Hel

Re: Compilation Error on AIX 5.3 with g++ 3.3.2

2007-03-01 Thread Paul Pluzhnikov
[EMAIL PROTECTED] writes: > g++ -o CArchive CFileRw.o CArchive.o CMain.o 3rdparty_1.a > ld: 0711-447 SEVERE ERROR: Shared object 3rdparty_1.a > The .loader section has been truncated. The object is being ignored. > collect2: ld returned 12 exit status > make: 1254-004 The error code from the last

Compilation Error on AIX 5.3 with g++ 3.3.2

2007-03-01 Thread nu2007
Hi, i have a simple makefile which looks like this: CArchive: CFileRw.o CArchive.o CMain.o g++ -o CArchive CFileRw.o CArchive.o CMain.o 3rdparty_1.a CFileRw.o: CFileRw.cxx HCommon.h g++ -c CFileRw.cxx CArchive.o: CArchive.cxx HCommon.h g++ -c CArchive.cxx CMain.o:

Re: strange compilation error ....

2006-10-09 Thread Paul Pluzhnikov
"466" <[EMAIL PROTECTED]> writes: > but I have a LOT of code to change ... Tough. > Is there any workaround to accomplish this? Sure: fix broken code. > some compiler options to accept non-standard code? Not that I am aware of. Cheers, -- In order to understand recursion you must first und

Re: strange compilation error ....

2006-10-09 Thread 466
Paul Pluzhnikov wrote: > "466" <[EMAIL PROTECTED]> writes: > > > MyList::iterator find(T pObj); > > Make that: > > typename MyList::iterator find(T pObj); > > > What could be the problem? > > Syntax error in your code. > > > This code compiles perfectly in Windows and Solaris. > > These

Re: strange compilation error ....

2006-10-09 Thread 466
Paul Pluzhnikov wrote: > "466" <[EMAIL PROTECTED]> writes: > > > MyList::iterator find(T pObj); > > Make that: > > typename MyList::iterator find(T pObj); > > > What could be the problem? > > Syntax error in your code. > > > This code compiles perfectly in Windows and Solaris. > > These

Re: strange compilation error ....

2006-10-09 Thread Paul Pluzhnikov
"466" <[EMAIL PROTECTED]> writes: > MyList::iterator find(T pObj); Make that: typename MyList::iterator find(T pObj); > What could be the problem? Syntax error in your code. > This code compiles perfectly in Windows and Solaris. These compilers incorrectly accept non standard

strange compilation error ....

2006-10-09 Thread 466
When trying to compile this code: /*begin headerfile.h*/ #include using namespace std; template class MyList : public list { public: MyList::iterator find(T pObj); }; /*end headerfile.h*/ I get a strange error: "error : expected ';' before find" I use g++ v.4.1.0 What could be the prob