 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
sg57
Joined: 14 Oct 2005 Posts: 154
|
Posted: Sat Jan 21, 2006 11:26 am Post subject: Help with first time coding, simple question and logfile... |
|
|
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 |
|
 |
Dr. Vegetable
Joined: 14 Nov 2005 Posts: 171 Location: Boston, Massachusetts
|
Posted: Sat Jan 21, 2006 12:52 pm Post subject: |
|
|
| Try renaming "main.h" to "main.cpp" and rename "Makefile.cpp" to "Makefile." with no extension. |
|
| Back to top |
|
 |
sg57
Joined: 14 Oct 2005 Posts: 154
|
Posted: Sat Jan 21, 2006 1:23 pm Post subject: |
|
|
| 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 |
|
 |
sg57
Joined: 14 Oct 2005 Posts: 154
|
Posted: Sat Jan 21, 2006 1:24 pm Post subject: |
|
|
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 |
|
 |
|
|
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
|