Welcome! Log In Create A New Profile

Advanced

Compile Error

Posted by frogmyster3 
Compile Error
April 13, 2009 09:17PM
Hi, I'm new to the Homebrew programming scene and I've been looking at the "Hello World" example and I've shortened some of the code in the Makefile to get rid of what isn't really necessary according to the tutorial on codemii.
So what I have in the Makefile is:
include $(DEVKITPPC)/wii_rules

SOURCES		:=	source
DATA		:=	data  
INCLUDES	:=
LIBS	:=	-lwiiuse -lbte -logc -lm
However when I come to make the file I get one error:
Quote

Error makefile 2: Command syntax error

This is the only error that is displayed but since there is nothing in that line I don't quite understand why it displays the error. It is still displayed when I move the code up so that SOURCES becomes line 2. Can anyone help out? Thanks.
Re: Compile Error
April 13, 2009 09:27PM
You probably stripped out something necessary in the makefile. I would suggest either using a different makefile, or redownloading the one you were using, try again without stripping anything out of the makefile.
Re: Compile Error
April 13, 2009 11:48PM
I've tried another makefile but more errors appear. The original should work I just don't understand why there is a syntax error in a line with no text at all.
Re: Compile Error
April 14, 2009 12:12AM
It should be read Errror 2 and not Error on line 2

And the definition of error 2 is: Command syntax error
Re: Compile Error
April 14, 2009 11:36PM
with Makefile, tabulations are used to identifies targets and dependancies. Do you put some ?
Sorry, only registered users may post in this forum.

Click here to login