Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!
Werbeanzeige
C-/C++-Quelltext |
|
1 2 3 4 5 6 7 |
#include "TriBase.h" int main() { tbInit(); tbExit(); } |
Zitat
D:\Development\PlatformSDK\VC\INCLUDE\crtdefs.h|522|error: redeclaration of C++ built-in type `short'|
D:\Development\PlatformSDK\Include\basetsd.h|79|error: `__int64' does not name a type|
D:\Development\PlatformSDK\Include\basetsd.h|83|error: `__int64' does not name a type|
D:\Development\PlatformSDK\Include\basetsd.h||In function `void* PtrToPtr64(const void*)':|
D:\Development\PlatformSDK\Include\basetsd.h|361|error: expected primary-expression before "void"|
D:\Development\PlatformSDK\Include\basetsd.h|361|error: expected `)' before "void"|
D:\Development\PlatformSDK\Include\basetsd.h|361|error: expected `)' before ';' token|
D:\Development\PlatformSDK\Include\basetsd.h||In function `void* Ptr64ToPtr(const void*)':|
D:\Development\PlatformSDK\Include\basetsd.h|370|error: expected primary-expression before "void"|
D:\Development\PlatformSDK\Include\basetsd.h|370|error: expected `)' before "void"|
D:\Development\PlatformSDK\Include\basetsd.h|370|error: expected `)' before ';' token|
D:\Development\PlatformSDK\Include\basetsd.h||In function `void* HandleToHandle64(const void*)':|
D:\Development\PlatformSDK\Include\basetsd.h|379|error: `__int64' was not declared in this scope|
D:\Development\PlatformSDK\Include\basetsd.h|379|error: expected primary-expression before "void"|
D:\Development\PlatformSDK\Include\basetsd.h|379|error: expected `)' before "void"|
D:\Development\PlatformSDK\Include\basetsd.h|379|error: expected `)' before ';' token|
D:\Development\PlatformSDK\Include\basetsd.h|379|warning: unused variable '__int64'|
D:\Development\PlatformSDK\Include\basetsd.h||In function `void* Handle64ToHandle(const void*)':|
D:\Development\PlatformSDK\Include\basetsd.h|388|error: expected primary-expression before "void"|
D:\Development\PlatformSDK\Include\basetsd.h|388|error: expected `)' before "void"|
D:\Development\PlatformSDK\Include\basetsd.h|388|error: expected `)' before ';' token|
D:\Development\PlatformSDK\Include\basetsd.h|476|error: `__int64' does not name a type|
D:\Development\PlatformSDK\Include\basetsd.h|483|error: `__int64' does not name a type|
D:\Development\PlatformSDK\Include\basetsd.h|484|error: `__int64' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|242|warning: "_cdecl" redefined|
:83|1|warning: this is the location of the previous definition|
D:\Development\PlatformSDK\Include\winnt.h|514|error: `__int64' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|515|error: `__int64' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|528|error: `__int64' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|529|error: `__int64' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|550|error: expected initializer before '*' token|
D:\Development\PlatformSDK\Include\winnt.h|551|error: expected initializer before '*' token|
D:\Development\PlatformSDK\Include\winnt.h|555|error: `LONGLONG' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|570|error: `LONGLONG' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|588|error: `ULONGLONG' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|606|error: `ULONGLONG' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|607|error: expected initializer before '*' token|
D:\Development\PlatformSDK\Include\winnt.h|734|#error Must define a target architecture.|
D:\Development\PlatformSDK\Include\winnt.h|872|error: `ULONGLONG' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|873|error: `ULONGLONG' does not name a type|
D:\Development\PlatformSDK\VC\INCLUDE\string.h|141|warning: ignoring #pragma warning |
D:\Development\PlatformSDK\VC\INCLUDE\string.h|142|warning: ignoring #pragma warning |
D:\Development\PlatformSDK\VC\INCLUDE\string.h|145|warning: ignoring #pragma warning |
D:\Development\PlatformSDK\Include\winnt.h|3043|warning: ignoring #pragma warning |
D:\Development\PlatformSDK\Include\winnt.h|3053|warning: ignoring #pragma warning |
D:\Development\PlatformSDK\Include\winnt.h|5532|error: `DWORD64' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|5533|error: `DWORD64' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|5536|error: `DWORD64' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|7240|error: `DWORD64' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|7241|error: `DWORD64' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|7242|error: `DWORD64' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|7243|error: `DWORD64' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|7245|error: `DWORD64' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|7248|error: `DWORD64' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|7249|error: `DWORD64' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|7313|error: `ULONGLONG' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|7314|error: `ULONGLONG' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|7315|error: `ULONGLONG' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|7316|error: `ULONGLONG' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|7317|error: `ULONGLONG' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|7318|error: `ULONGLONG' does not name a type|
D:\Development\PlatformSDK\Include\winnt.h|7544|error: `ULONGLONG' does not name a type|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 8 warnings ===|
C-/C++-Quelltext |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
#include "TriBase.h" #include <iostream> using namespace std; int main() { tbInit(); tbWriteToLog("Das ist ein Test"); int *paRandom1 = (int*)tbMemAlloc(1000 * sizeof(int)); int *paRandom2 = (int*)tbMemAlloc(1000 * sizeof(int)); int *paRandom3 = (int*)tbMemAlloc(1000 * sizeof(int)); for (int i = 0; i < 1000; i++) { paRandom1[i] = tbIntRandom(0, 1000); paRandom2[i] = tbIntRandom(0, 1000); } // Nach der Pause läufts jetzt noch bis hier <------ (Erklärung unten) cout << paRandom1[0] << endl; cout << paRandom2[0] << endl; cout << paRandom1[999] << endl; cout << paRandom2[999] << endl; memcpy(paRandom3, paRandom1, 1000 * sizeof(int)); memcpy(paRandom1, paRandom2, 1000 * sizeof(int)); memcpy(paRandom2, paRandom3, 1000 * sizeof(int)); cout << paRandom1[0] << endl; cout << paRandom2[0] << endl; cout << paRandom1[999] << endl; cout << paRandom2[999] << endl; tbVFile *pFile = new tbVFile(); pFile->Init("hci.txt@hci.zip"); pFile->SaveToFile("hci.txt"); TB_SAFE_DELETE(pFile); tbVector3 a(tbVector3(17.0f, 23.0f, -1.0f)); // Das hier ist neu tbExit(); } |
Zitat
D:\Development\Visual Studio\VC\include\xlocale|342|warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc|
main.obj||error LNK2019: unresolved external symbol "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z) referenced in function "public: __thiscall std::_Locinfo::_Locinfo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0_Locinfo@std@@QAE@|
bin\Debug\TriBase.exe||fatal error LNK1120: 1 unresolved externals|
||=== Build finished: 2 errors, 1 warnings ===|
C-/C++-Quelltext |
|
1 2 3 4 5 |
// einfach schwarz festlegen: tbColor Farbe = tbColor(0.0f); // umständlich schwarz festlegen tbColor Farbe = tbColor(0.0f, 0.0f, 0.0f); |
Zitat von »"tbVektor3.h"«
C-/C++-Quelltext
1 2 3 // ... inline tbVector3(const float f) : x(f), y(f), z(f) {} // ...
Werbeanzeige