DS Game Maker Compiler error

  • Thread starter Thread starter GDSuperboi
  • Start date Start date
  • Views Views 885
  • Replies Replies 3

GDSuperboi

New Member
Newbie
Joined
Oct 6, 2024
Messages
1
Reaction score
0
Trophies
0
Age
26
XP
32
Country
United States
anyone know how to fix this compiler error in DS Game Maker?:

C:/devkitPro/libnds/include/nds/arm9/math.h:111:7: warning: conflicting types for built-in function 'sqrtf32'; expected '_Float32(_Float32)' [-Wbuiltin-declaration-mismatch]
111 | int32 sqrtf32(int32 a)
| ^~~~~~~
C:/devkitPro/libnds/include/nds/arm9/math.h:1:1: note: 'sqrtf32' is declared in header '<math.h>'
+++ |+#include <math.h>
1 | /*---------------------------------------------------------------------------------
C:/devkitPro/libnds/include/nds/arm9/videoGL.h: In function 'gluLookAtf32':
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1022:22: error: passing argument 1 of 'normalizef32' from incompatible pointer type [-Wincompatible-pointer-types]
1022 | normalizef32(forward);
| ^~~~~~~
| |
| int *
C:/devkitPro/libnds/include/nds/arm9/math.h:292:26: note: expected 'int32 *' {aka 'long int *'} but argument is of type 'int *'
292 | void normalizef32(int32* a)
| ~~~~~~~^
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1031:18: error: passing argument 1 of 'crossf32' from incompatible pointer type [-Wincompatible-pointer-types]
1031 | crossf32(up, forward, side);
| ^~
| |
| int *
C:/devkitPro/libnds/include/nds/arm9/math.h:259:22: note: expected 'int32 *' {aka 'long int *'} but argument is of type 'int *'
259 | void crossf32(int32 *a, int32 *b, int32 *result)
| ~~~~~~~^
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1031:22: error: passing argument 2 of 'crossf32' from incompatible pointer type [-Wincompatible-pointer-types]
1031 | crossf32(up, forward, side);
| ^~~~~~~
| |
| int *
C:/devkitPro/libnds/include/nds/arm9/math.h:259:32: note: expected 'int32 *' {aka 'long int *'} but argument is of type 'int *'
259 | void crossf32(int32 *a, int32 *b, int32 *result)
| ~~~~~~~^
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1031:31: error: passing argument 3 of 'crossf32' from incompatible pointer type [-Wincompatible-pointer-types]
1031 | crossf32(up, forward, side);
| ^~~~
| |
| int *
C:/devkitPro/libnds/include/nds/arm9/math.h:259:42: note: expected 'int32 *' {aka 'long int *'} but argument is of type 'int *'
259 | void crossf32(int32 *a, int32 *b, int32 *result)
| ~~~~~~~^~~~~~
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1033:22: error: passing argument 1 of 'normalizef32' from incompatible pointer type [-Wincompatible-pointer-types]
1033 | normalizef32(side);
| ^~~~
| |
| int *
C:/devkitPro/libnds/include/nds/arm9/math.h:292:26: note: expected 'int32 *' {aka 'long int *'} but argument is of type 'int *'
292 | void normalizef32(int32* a)
| ~~~~~~~^
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1036:18: error: passing argument 1 of 'crossf32' from incompatible pointer type [-Wincompatible-pointer-types]
1036 | crossf32(forward, side, up);
| ^~~~~~~
| |
| int *
C:/devkitPro/libnds/include/nds/arm9/math.h:259:22: note: expected 'int32 *' {aka 'long int *'} but argument is of type 'int *'
259 | void crossf32(int32 *a, int32 *b, int32 *result)
| ~~~~~~~^
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1036:27: error: passing argument 2 of 'crossf32' from incompatible pointer type [-Wincompatible-pointer-types]
1036 | crossf32(forward, side, up);
| ^~~~
| |
| int *
C:/devkitPro/libnds/include/nds/arm9/math.h:259:32: note: expected 'int32 *' {aka 'long int *'} but argument is of type 'int *'
259 | void crossf32(int32 *a, int32 *b, int32 *result)
| ~~~~~~~^
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1036:33: error: passing argument 3 of 'crossf32' from incompatible pointer type [-Wincompatible-pointer-types]
1036 | crossf32(forward, side, up);
| ^~
| |
| int *
C:/devkitPro/libnds/include/nds/arm9/math.h:259:42: note: expected 'int32 *' {aka 'long int *'} but argument is of type 'int *'
259 | void crossf32(int32 *a, int32 *b, int32 *result)
| ~~~~~~~^~~~~~
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1054:34: error: passing argument 1 of 'dotf32' from incompatible pointer type [-Wincompatible-pointer-types]
1054 | MATRIX_MULT4x3 = -dotf32(eye,side);
| ^~~
| |
| int *
C:/devkitPro/libnds/include/nds/arm9/math.h:276:21: note: expected 'int32 *' {aka 'long int *'} but argument is of type 'int *'
276 | int32 dotf32(int32 *a, int32 *b)
| ~~~~~~~^
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1054:38: error: passing argument 2 of 'dotf32' from incompatible pointer type [-Wincompatible-pointer-types]
1054 | MATRIX_MULT4x3 = -dotf32(eye,side);
| ^~~~
| |
| int *
C:/devkitPro/libnds/include/nds/arm9/math.h:276:31: note: expected 'int32 *' {aka 'long int *'} but argument is of type 'int *'
276 | int32 dotf32(int32 *a, int32 *b)
| ~~~~~~~^
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1055:34: error: passing argument 1 of 'dotf32' from incompatible pointer type [-Wincompatible-pointer-types]
1055 | MATRIX_MULT4x3 = -dotf32(eye,up);
| ^~~
| |
| int *
C:/devkitPro/libnds/include/nds/arm9/math.h:276:21: note: expected 'int32 *' {aka 'long int *'} but argument is of type 'int *'
276 | int32 dotf32(int32 *a, int32 *b)
| ~~~~~~~^
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1055:38: error: passing argument 2 of 'dotf32' from incompatible pointer type [-Wincompatible-pointer-types]
1055 | MATRIX_MULT4x3 = -dotf32(eye,up);
| ^~
| |
| int *
C:/devkitPro/libnds/include/nds/arm9/math.h:276:31: note: expected 'int32 *' {aka 'long int *'} but argument is of type 'int *'
276 | int32 dotf32(int32 *a, int32 *b)
| ~~~~~~~^
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1056:34: error: passing argument 1 of 'dotf32' from incompatible pointer type [-Wincompatible-pointer-types]
1056 | MATRIX_MULT4x3 = -dotf32(eye,forward);
| ^~~
| |
| int *
C:/devkitPro/libnds/include/nds/arm9/math.h:276:21: note: expected 'int32 *' {aka 'long int *'} but argument is of type 'int *'
276 | int32 dotf32(int32 *a, int32 *b)
| ~~~~~~~^
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1056:38: error: passing argument 2 of 'dotf32' from incompatible pointer type [-Wincompatible-pointer-types]
1056 | MATRIX_MULT4x3 = -dotf32(eye,forward);
| ^~~~~~~
| |
| int *
C:/devkitPro/libnds/include/nds/arm9/math.h:276:31: note: expected 'int32 *' {aka 'long int *'} but argument is of type 'int *'
276 | int32 dotf32(int32 *a, int32 *b)
| ~~~~~~~^
C:/devkitPro/libnds/include/nds/arm9/videoGL.h: In function 'glGetFixed':
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1216:25: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
1216 | while(GFX_BUSY); // wait until the graphics engine has stopped to read matrixes
| ^~~~~
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1217:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
1217 | for(i = 0; i < 16; i++) f = MATRIX_READ_CLIP; // read out the projection matrix
| ^~~
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1224:25: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
1224 | while(GFX_BUSY); // wait until the graphics engine has stopped to read matrixes
| ^~~~~
C:/devkitPro/libnds/include/nds/arm9/videoGL.h:1225:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
1225 | for(i = 0; i < 16; i++) f = MATRIX_READ_CLIP; // read out the position matrix
| ^~~
In file included from C:/DSGMTempStylusFunctions25454811/source/main.c:3:
C:/devkitPro/libnds/include/filesystem.h: At top level:
C:/devkitPro/libnds/include/filesystem.h:7:6: error: conflicting types for 'nitroFSInit'; have '_Bool()'
7 | bool nitroFSInit();
| ^~~~~~~~~~~
In file included from C:/devkitPro/PAlib/include/nds/PA9.h:62:
C:/devkitPro/libnds/include/filesystem.h:7:6: note: previous declaration of 'nitroFSInit' with type 'bool()'
7 | bool nitroFSInit();
| ^~~~~~~~~~~
make[1]: *** [C:\devkitPro\PAlib\lib\PA_Makefile:220: main.o] Error 1
make: *** [C:\devkitPro\PAlib\lib\PA_Makefile:151: build] Error 2

C:\DSGMTempStylusFunctions25454811>pause
 
look bro DSGamemaker is old tool and framework. Someone would need to recreate it on HTML CSS JavaScript/Python/C++ or something, then adapt ndslib to work with it, buttons that would add actions/functions into a list array that would compile. DSGamemaker does compilation of an array list of code that will compile altogether throught palib and devkitpro..

dsgm does not support ndslib because at that time this library hadn't been create'd yet. This software would-need/has-to be re-wrote.
 

Site & Scene News

Popular threads in this forum