Unter Windows kompiliert mein Plugin für ein Spiel ohne irgendwelche Probleme - unter Linux kommen allerdings für jede Python Header Datei pro Zeile ein/mehrere Fehler und ich weiß einfach nicht mehr, was ich da machen kann.
Hier ist ein _minimaler_ Auszug aus dem Log:
Code: Alles auswählen
from Source/NativeTools.cpp:1:
/home/christian/nativetools/Python/sysmodule.h:10: error: expected constructor, destructor, or type conversion before ‘(’ token
/home/christian/nativetools/Python/sysmodule.h:11: error: expected constructor, destructor, or type conversion before ‘(’ token
/home/christian/nativetools/Python/sysmodule.h:12: error: expected constructor, destructor, or type conversion before ‘(’ token
/home/christian/nativetools/Python/sysmodule.h:13: error: expected constructor, destructor, or type conversion before ‘(’ token
/home/christian/nativetools/Python/sysmodule.h:14: error: expected constructor, destructor, or type conversion before ‘(’ token
/home/christian/nativetools/Python/sysmodule.h:16: error: expected constructor, destructor, or type conversion before ‘(’ token
/home/christian/nativetools/Python/sysmodule.h:18: error: expected constructor, destructor, or type conversion before ‘(’ token
/home/christian/nativetools/Python/sysmodule.h:21: warning: ISO C++ forbids declaration of ‘__declspec’ with no type
/home/christian/nativetools/Python/sysmodule.h:21: warning: ‘__declspec’ initialized and declared ‘extern’
/home/christian/nativetools/Python/sysmodule.h:21: error: redefinition of ‘int __declspec’
/home/christian/nativetools/Python/object.h:375: error: ‘int __declspec’ previously defined here
/home/christian/nativetools/Python/sysmodule.h:21: error: ‘dllimport’ was not declared in this scope
/home/christian/nativetools/Python/sysmodule.h:22: warning: ISO C++ forbids declaration of ‘__declspec’ with no type
/home/christian/nativetools/Python/sysmodule.h:22: warning: ‘__declspec’ initialized and declared ‘extern’
/home/christian/nativetools/Python/sysmodule.h:22: error: redefinition of ‘int __declspec’
/home/christian/nativetools/Python/object.h:375: error: ‘int __declspec’ previously defined here
/home/christian/nativetools/Python/sysmodule.h:22: error: ‘dllimport’ was not declared in this scope
/home/christian/nativetools/Python/sysmodule.h:24: error: expected constructor, destructor, or type conversion before ‘(’ token
/home/christian/nativetools/Python/sysmodule.h:25: error: expected constructor, destructor, or type conversion before ‘(’ token
In file included from /home/christian/nativetools/Python/Python.h:123,
from Source/Headers/NativeTools.hpp:45,
from Source/NativeTools.cpp:1:
/home/christian/nativetools/Python/intrcheck.h:8: error: expected constructor, destructor, or type conversion before ‘(’ token
/home/christian/nativetools/Python/intrcheck.h:9: error: expected constructor, destructor, or type conversion before ‘(’ token
/home/christian/nativetools/Python/intrcheck.h:10: error: expected constructor, destructor, or type conversion before ‘(’ token
In file included from /home/christian/nativetools/Python/Python.h:124,
from Source/Headers/NativeTools.hpp:45,
from Source/NativeTools.cpp:1:
/home/christian/nativetools/Python/import.h:10: error: expected constructor, destructor, or type conversion before ‘(’ token
/home/christian/nativetools/Python/import.h:11: error: expected constructor, destructor, or type conversion before ‘(’ token
/home/christian/nativetools/Python/import.h:12: error: expected constructor, destructor, or type conversion before ‘(’ token
/home/christian/nativetools/Python/import.h:14: error: expected constructor, destructor, or type conversion before ‘(’ token
/home/christian/nativetools/Python/import.h:15: error: expected constructor, destructor, or type conversion before ‘(’ token
/home/christian/nativetools/Python/import.h:16: error: expected constructor, destructor, or type conversion before ‘(’ token
Weiß jemand, woran das liegen kann?
Hier ist meine aktuelle Makefile: http://pastebin.com/d1a4cc05d
Dabei noch mal eine kleine Frage nebenbei? Wie kann ich die Ausgabe von make in eine Datei umleiten?
`make >> log.txt` leitet nur direkte Ausgaben von make dahinein, aber nicht die Fehler die vom Compiler produziert werden :S
~ Chris