a new kind of agenda : our development is at the stage at which we have SpiraClock running on the PSP except that, recently, as we tried to add meeting exchange via irda, an error suddently appeared. An error, I don't understand and which I can't find any reason for in the modifications we made.
- PSPiral.o(.bss+0x0) : multiple definition of '__packed__'
main.o(.bss+0x0) : first defined here
DisplayManager.o(.bss+0x0) : multiple definition of '__packed__'
main.o(.bss+0x0) : first defined here
MainMenu.o(.bss+0x0) : multiple definition of '__packed__'
main.o(.bss+0x0) : first defined here
TransferMenu.o(.bss+0x0) : multiple definition of '__packed__'
main.o(.bss+0x0) : first defined here
- TARGET = sdl_ose
PSPSDK=$(shell psp-config --pspsdk-path)
PSPBIN = $(PSPSDK)/../bin
SDL_CONFIG = $(PSPBIN)/sdl-config
OBJS = main.o PSPiral.o DisplayManager.o MainMenu.o TransfertMenu.o Modules.o Spiral.o PolarPoint.o reader.o evtlist.o evt.o
INCDIR =
CFLAGS = -O2 -G0 -Wall $(shell $(SDL_CONFIG) --cflags) -DHAVE_CONFIG_H
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti -Wpointer-arith
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
LIBS = -lstdc++ -lSDL_mixer -lSDL_image -lSDL_gfx -lpng -lz -ljpeg \
-lm $(shell $(SDL_CONFIG) --libs)
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = PSPiral
include $(PSPSDK)/lib/build.mak
Code: Select all
#include "..\include\PSPiral.h"
#ifndef PSP
int main( int argc, char *argv[] )
#else
extern "C" int SDL_main( int argc, char *argv[] )
#endif
{
PSPiral theAppli= PSPiral();
return 0;
}
Code: Select all
#ifndef SPIRAL_H
#define SPIRAL_H
#include "TransfertMenu.h"
#include "MainMenu.h"
#include "DisplayManager.h"
class PSPiral
{
private :
Modules * currentModule;
DisplayManager * theClock;
MainMenu * mainMenu;
TransfertMenu * transmissionMenu;
public:
PSPiral();
~PSPiral();
void changeCurrentModuleTo(int typeOfMenu){};
};
#endif
Code: Select all
#ifndef DISPLAYMANAGER_H
#define DISPLAYMANAGER_H
#include "Spiral.h"
#include "modules.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using std::string;
class DisplayManager : public Modules
{
private:
bool optiActivated;
Evt currentTime;
Evt middleTime;
bool selectHourArm;
bool selectMinuteArm;
Spiral theSpiral;
public:
DisplayManager(char * ref);
~DisplayManager(void);
//Drawing methods
void drawEvent(Evt &anEvent);//draw an event
void drawCurrentRef();//draw the arm of the clock
void drawScene();//draw the agenda
void transitionToMainMenu();
int eventLoop();
};
#endif
Code: Select all
#ifndef MAINMENU_H
#define MAINMENU_H
#include "modules.h"
#include <stdio.h>
#include <stdlib.h>
class MainMenu :public Modules
{
public:
int optionSelected;//1=clock 2=transmit
MainMenu(SDL_Surface *screen,const SDL_VideoInfo *info,Uint8 video_bpp,Uint32 videoflags);
MainMenu(void){};
~MainMenu(void);
void drawHighliter();
void drawScene();//draw the agenda
void transitionFromMainMenu(){};
void transitionToMainMenu(){};
int SDLInitiation();
int eventLoop();
};
#endif
Code: Select all
#ifndef MAINMENU_H
#define MAINMENU_H
#include "modules.h"
#include <stdio.h>
#include <stdlib.h>
class MainMenu :public Modules
{
public:
int optionSelected;//1=clock 2=transmit
MainMenu(SDL_Surface *screen,const SDL_VideoInfo *info,Uint8 video_bpp,Uint32 videoflags);
MainMenu(void){};
~MainMenu(void);
void drawHighliter();
void drawScene();//draw the agenda
void transitionFromMainMenu(){};
void transitionToMainMenu(){};
int SDLInitiation();
int eventLoop();
};
#endif