 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
8HandsCoder
Joined: 21 Feb 2006 Posts: 2
|
Posted: Wed Feb 22, 2006 6:07 am Post subject: Sudden compiling error |
|
|
Hi, this is my first post so I'm going to introduce myself and my project a little. First its '8HandsCoder' because we'll be 4 behind this nickname as it might make it easier for us. Our project is to create a homebrew of SpiraClock
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
Below are the headers of the classes concerned and the makefile.. tell me if you need some more info to solve what is for me a total mystery. ;)
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: | #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: | #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: | #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: | #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: | #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 |
|
|
| Back to top |
|
 |
8HandsCoder
Joined: 21 Feb 2006 Posts: 2
|
Posted: Thu Feb 23, 2006 9:23 am Post subject: |
|
|
After a long search it seems to be that this kind of problem usually occurs :
-with DevCpp and that an update solves the problem
-with badly built libraries
so, I kinda concluded that there's a conflict between __packed__ defined in both SDL_gfx and pspsircs libraries... but I couldn't find any solution to that.
If anyone as another lead to give me on diagnosticing the problem or finding a solution to it I would be very grateful. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|