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();
}
--
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
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
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
+;
}
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
[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
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:
"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
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
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
"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
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
12 matches
Mail list logo