This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

compiling error


Hi!

I have just installed djgpp for the first time. I did everything as it was
written in docs.

I create my test program in hello.cpp file:

#include <iostream>

using namespace std;

int main()
{
	cout << "Hello, World!\n";
	return 0;
}

gpp hello.cpp -o hello.exe

gives many errors like:
c:\djgpp\tmp\RHaaaaaa\ccMpsdvi.s(3411) Error: Error: Too many new sections;
can't add ".gnu.linkonce.t._ZNSaIcED1Ev"

What is wrong? What should I check or configure?

When I change the program in the old-style like:
#include <iostream.h>

int main()
{
	cout << "Hello, World!\n";
	return 0;
}

Now it is compiled.

Thanks in advance.

Alexandru
----------------------------------------------
Life is beautiful and there is no doubt in it!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]