forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help with first time coding, simple question and logfile...

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
sg57



Joined: 14 Oct 2005
Posts: 154

PostPosted: Sat Jan 21, 2006 11:26 am    Post subject: Help with first time coding, simple question and logfile... Reply with quote

ok, im good with LUA, but C/C++ is new to me so im starting out anyway...

i ahve my main.h and makefile(.cpp) in my directory together and such, but when i click make when im in the directory, it passes right thro the main.h because its non error existant, but when it goes to the makefile, it says error on the 1st line, anyhelp would be appreciated heres the error i get

Code:
1 C:\cygwin\home\~~~~\projects\helloworld\makefile.cpp expected `,' or `;' before '=' token


Code:
1 C:\cygwin\home\~~~~~\projects\helloworld\makefile.cpp expected constructor, destructor, or type conversion before '=' token


heres is the makefile:

Code:
TARGET = hello
OBJS = main.o

CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Jordans Program

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak


please help its probably just a simple error its on line one, some weird problem, just a quick answer and its done thanks...


Last edited by sg57 on Sun Jan 22, 2006 4:00 am; edited 1 time in total
Back to top
View user's profile Send private message
Dr. Vegetable



Joined: 14 Nov 2005
Posts: 171
Location: Boston, Massachusetts

PostPosted: Sat Jan 21, 2006 12:52 pm    Post subject: Reply with quote

Try renaming "main.h" to "main.cpp" and rename "Makefile.cpp" to "Makefile." with no extension.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sg57



Joined: 14 Oct 2005
Posts: 154

PostPosted: Sat Jan 21, 2006 1:23 pm    Post subject: Reply with quote

ok but when i rename makefile manually it jsut says makefile ype of file 'file' and it still gives me error, but ill keep trying
Back to top
View user's profile Send private message
sg57



Joined: 14 Oct 2005
Posts: 154

PostPosted: Sat Jan 21, 2006 1:24 pm    Post subject: Reply with quote

wait i think i fixed it, it got pass that eror but now i got a new one, give me a second

its on line 5 14 and 38 ill try and fix it
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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