Hi all,
since the gcc is very slow on an A4000/040, especially when using the STL, I tried to use precompiled header with the m68k gcc 3.4. Unfortunately I can only see an error message "PCH not supported". I'm wondering why, since it works doing the same on a linux machine and 3.4 should support precompiled header. Maybe somebody knows a solution or a newer gcc version for classic Amigas?
FYI, here are the hello.cpp and hello.h:
#pragma once
#include <string>
using namespace std;
class Hello
{
public:
Hello() : s("Hello World!") {};
string s;
};
#include "hello.h"
#include
using namespace std;
int main()
{
Hello h;
cout << h.s;
return 0;
}
and I can compile it this way:
g++ -x c++-header hello.h
g++ -H hello.cpp