Hello ppl,
i am having a problem with the Lib "math.h"
when i inlcude the lib ( #include <math.h> ),
this give me this error:
psp-gcc -I. -IC:\PSPide\psp\sdk/include -O2 -G0 -Wall -c -o main.o main.c
In file included from main.c:10:
/cygdrive/c/PSPide/bin/../lib/gcc/psp/4.0.0/include/math.h:53: error: parse error before numeric constant
MAKE: *** [main.o] Error 1
what can i do to solve this problem ?!?!?!
Regards,
ShUr1k3n
Math.h !!!
Thks for the answers, but, i use the PSPide C++ 1.0.8.30 to compile the projects...
But when i try to use the Cygwin.. The error continue...
Any idea !?
Do i need to change the MakeFile !?
MakeFile:
The Graphics.o is the "pg.o"...
Regards,
ShUr1k3n
But when i try to use the Cygwin.. The error continue...
Any idea !?
Do i need to change the MakeFile !?
MakeFile:
Code: Select all
TARGET = sdktest
OBJS = main.o graphics.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Graficos
include $(PSPSDK)/lib/build.mak
Regards,
ShUr1k3n
Hi ppl,
problem solved...
This code:
give me error...
but this:
don't...
Why !??!
whats the diference between put the "#include <colors.h>" before the "#include <math.h>" and after !?
Well problem solved..
thks for who answer...
Regards,
ShUr1k3n
problem solved...
This code:
Code: Select all
#include <colors.h>
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspctrl.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
but this:
Code: Select all
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspctrl.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <colors.h>
Why !??!
whats the diference between put the "#include <colors.h>" before the "#include <math.h>" and after !?
Well problem solved..
thks for who answer...
Regards,
ShUr1k3n