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

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
sg57
Posts: 144
Joined: Fri Oct 14, 2005 2:26 pm

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

Post by sg57 »

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: Select all

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

Code: Select all

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

Code: Select all

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.
Dr. Vegetable
Posts: 171
Joined: Mon Nov 14, 2005 1:32 am
Location: Boston, Massachusetts
Contact:

Post by Dr. Vegetable »

Try renaming "main.h" to "main.cpp" and rename "Makefile.cpp" to "Makefile." with no extension.
sg57
Posts: 144
Joined: Fri Oct 14, 2005 2:26 pm

Post by sg57 »

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
sg57
Posts: 144
Joined: Fri Oct 14, 2005 2:26 pm

Post by sg57 »

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
Post Reply