Search found 8 matches

by sedrik
Tue Sep 23, 2008 5:32 pm
Forum: PSP Development
Topic: autoconf fails linking in C++
Replies: 2
Views: 1253

add

Code: Select all

LIBS=-lstdc++
to your Makefile
by sedrik
Sat Sep 20, 2008 3:15 am
Forum: PSP Development
Topic: Editing make file
Replies: 11
Views: 3215

yeah but I believe g++ can link gcc .o files without problems?
by sedrik
Fri Sep 19, 2008 7:30 pm
Forum: PSP Development
Topic: Editing make file
Replies: 11
Views: 3215

yeah but linking the library manually is not an automatic process :P

I don't see why it should compile using psp-g++ but link using psp-gcc, wouldn't psp-g++ be able to do the linking that C needs and be the default linker?
by sedrik
Fri Sep 19, 2008 5:20 pm
Forum: PSP Development
Topic: Editing make file
Replies: 11
Views: 3215

Ok, found the name of c++ library in your make file now. So to conclude the Makefile does not handle C vs C++ automatically as you suggested. You have to include LIBS= -lstdc++ to make psp-gcc able to link c++ code. Why it think it should link using psp-gcc instead of psp-g++ still makes me confused..
by sedrik
Fri Sep 19, 2008 5:08 pm
Forum: PSP Development
Topic: Editing make file
Replies: 11
Views: 3215

My makefile PROJECT = thaGame TARGET = ${PROJECT} OBJS = main.o engine.o card.o deck.o INCDIR = ./include/ LIBIDR = ./lib/ CFLAGS = -O2 -G0 -Wall CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti ASFLAGS = $(CFLAGS) EXTRA_TARGETS = EBOOT.PBP PSP_EBOOT_T...
by sedrik
Fri Sep 19, 2008 3:38 pm
Forum: PSP Development
Topic: Editing make file
Replies: 11
Views: 3215

How do I tell the makefile that I'm working with C++ and not C? The files compiles with psp-g++ but it tries to link them with psp-gcc which for obvious reasons do not work.
by sedrik
Tue Sep 16, 2008 5:00 pm
Forum: PSP Development
Topic: Editing make file
Replies: 11
Views: 3215

I know how to edit makefiles to containt new information about my files and stuff. I just want to know how to edit it so that my directory structure will work. The structure I use for my projects won't change depending on app (not that much, thoose folders will always be there) and I just need help ...
by sedrik
Mon Sep 15, 2008 8:29 am
Forum: PSP Development
Topic: Editing make file
Replies: 11
Views: 3215

Editing make file

Hi all I have quite recently started with psp development and have managed to complete some tutorials. Now I want to start on my own project. One thing I like to do is to have a good structure in my project and it usualy goes something like this. src/ (all my source files, .c, .cpp) include/ (all .h...