<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Undefined references</title>
<description> I got some trouble with a project I&amp;#039;m trying to do for the Wii. When compiling it shows me this:


&amp;gt; &quot;make&quot; 
main.cpp
linking ... yosdemo.elf
main.o: In function `levelManager::update()&amp;#039;:
e:/yosdemo/source/lvl/level_manager.cpp:17: undefined reference to `mapLevel::draw()&amp;#039;
main.o: In function `__static_initialization_and_destruction_0&amp;#039;:
e:/yosdemo/source/lvl/level_manager.cpp:4: undefined reference to `mapLevel::~mapLevel()&amp;#039;
e:/yosdemo/source/lvl/level_manager.cpp:4: undefined reference to `mapLevel::mapLevel()&amp;#039;
collect2: ld returned 1 exit status
make[1]: *** [/e/yosdemo/yosdemo.elf] Error 1
&quot;make&quot;: *** [build] Error 2

&amp;gt; Process Exit Code: 2
&amp;gt; Time Taken: 00:11


Here are the files:

level_manager.cpp:

#include &quot;level_manager.h&quot;
#include &quot;level.h&quot;

mapLevel Level;

levelManager::levelManager()
{

}
levelManager::~levelManager()
{

}

void levelManager::update()
{
Level.draw();
};

level_manager.h:

#ifndef __LEVEL_MANAGER_H__
#define __LEVEL_MANAGER_H__

class levelManager
{
public:
levelManager();
~levelManager();
void update();
//bool draw();
};

#endif

level.cpp:

#include &quot;../redblock.h&quot;
#include &quot;../camera.h&quot;
#include &quot;level.h&quot;
#include &quot;map.h&quot;

#define tilew (16)
#define tileh (16)

GRRLIB_texImg * block;

mapLevel::mapLevel()
{
block = GRRLIB_LoadTexture(spr_redblock);
mapw=32;
maph=15;
}


mapLevel::~mapLevel()
{
}

void mapLevel::start()
{
block = GRRLIB_LoadTexture(spr_redblock);
mapw=32;
maph=15;
}

bool mapLevel::draw()
{
for (x=0; x&amp;lt;=mapw; x++) {
for (y=0; y&amp;lt;=maph; y++) {
if (testlevel_map0[y][x]!=0) {
GRRLIB_DrawImg(x*tilew+camx, y*tileh, block, 0, 1, 1, 0xFFFFFFFF);
}
}
}
return true;
};

level.h:

#ifndef __LEVEL_H__
#define __LEVEL_H__

class mapLevel
{
public:
mapLevel();
~mapLevel();
void start();
bool draw();
int x, y;
int tilew, tileh;
int mapw, maph;
};
#endif

Makefile:

#---------------------------------------------------------------------------------
# Clear the implicit built in rules
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(DEVKITPPC)),)
$(error &quot;Please set DEVKITPPC in your environment. export DEVKITPPC=devkitPPC)
endif

include $(DEVKITPPC)/wii_rules

#---------------------------------------------------------------------------------
# TARGET is the name of the output
# BUILD is the directory where object files &amp; intermediate files will be placed
# SOURCES is a list of directories containing source code
# INCLUDES is a list of directories containing extra header files
#---------------------------------------------------------------------------------
TARGET := $(notdir $(CURDIR))
BUILD := build
SOURCES := source
DATA := data 
INCLUDES :=

#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------

CFLAGS = -g -O2 -Wall $(MACHDEP) $(INCLUDE)
CXXFLAGS = $(CFLAGS)

LDFLAGS = -g $(MACHDEP) -mrvl -Wl,-Map,$(notdir $@).map

#---------------------------------------------------------------------------------
# any extra libraries we wish to link with the project
#---------------------------------------------------------------------------------
LIBS := -lgrrlib -lfreetype -lpngu -lpng -ljpeg -lz -lfat 
LIBS += -lwiiuse 
LIBS += -lmodplay -lasnd 
LIBS += -lbte -logc -lm 

#---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing
# include and lib
#---------------------------------------------------------------------------------
LIBDIRS := $(CURDIR)

#---------------------------------------------------------------------------------
# no real need to edit anything past this point unless you need to add additional
# rules for different file extensions
#---------------------------------------------------------------------------------
ifneq ($(BUILD),$(notdir $(CURDIR)))
#---------------------------------------------------------------------------------

export OUTPUT := $(CURDIR)/$(TARGET)

export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
$(foreach dir,$(DATA),$(CURDIR)/$(dir))

export DEPSDIR := $(CURDIR)/$(BUILD)

#---------------------------------------------------------------------------------
# automatically build a list of object files for our project
#---------------------------------------------------------------------------------
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
sFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.S)))
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*)))

#---------------------------------------------------------------------------------
# use CXX for linking C++ projects, CC for standard C
#---------------------------------------------------------------------------------
ifeq ($(strip $(CPPFILES)),)
export LD := $(CC)
else
export LD := $(CXX)
endif

export OFILES := $(addsuffix .o,$(BINFILES)) \
$(CPPFILES:.cpp=.o) $(CFILES:.c=.o) \
$(sFILES:.s=.o) $(SFILES:.S=.o)

#---------------------------------------------------------------------------------
# build a list of include paths
#---------------------------------------------------------------------------------
export INCLUDE := $(foreach dir,$(INCLUDES), -iquote $(CURDIR)/$(dir)) \
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
-I$(CURDIR)/$(BUILD) \
-I$(LIBOGC_INC)

#---------------------------------------------------------------------------------
# build a list of library paths
#---------------------------------------------------------------------------------
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) \
-L$(LIBOGC_LIB)

export OUTPUT := $(CURDIR)/$(TARGET)
.PHONY: $(BUILD) clean

#---------------------------------------------------------------------------------
$(BUILD):
@[ -d $@ ] || mkdir -p $@
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile

#---------------------------------------------------------------------------------
clean:
@echo clean ...
@rm -fr $(BUILD) $(OUTPUT).elf $(OUTPUT).dol

#---------------------------------------------------------------------------------
run:
psoload $(TARGET).dol

#---------------------------------------------------------------------------------
reload:
psoload -r $(TARGET).dol


#---------------------------------------------------------------------------------
else

DEPENDS := $(OFILES:.o=.d)

#---------------------------------------------------------------------------------
# main targets
#---------------------------------------------------------------------------------
$(OUTPUT).dol: $(OUTPUT).elf
$(OUTPUT).elf: $(OFILES)

#---------------------------------------------------------------------------------
# This rule links in binary data with the .jpg extension
#---------------------------------------------------------------------------------
%.jpg.o : %.jpg
#---------------------------------------------------------------------------------
@echo $(notdir $&amp;lt;)
$(bin2o)

#--------------------------------------------------------------------------------- 
%.png.o : %.png 
#---------------------------------------------------------------------------------
@echo $(notdir $&amp;lt;) 
$(bin2o) 

%.bin.o : %.bin
#---------------------------------------------------------------------------------
@echo $(notdir $&amp;lt;)
$(bin2o)

-include $(DEPENDS)

#---------------------------------------------------------------------------------
endif
#---------------------------------------------------------------------------------

I really don&amp;#039;t know why it is not taking the mapLevel&amp;#039;s.
I use Programmers Notepad, of course. I dont know if it is something to do with the Makefile I have.
If there&amp;#039;s a missing file I have to put, let me know.</description><link>http://forum.wiibrew.org/read.php?11,61560,61560#msg-61560</link><lastBuildDate>Mon, 20 Jul 2026 12:24:30 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,61560,61698#msg-61698</guid>
<title>Re: Undefined references</title><link>http://forum.wiibrew.org/read.php?11,61560,61698#msg-61698</link><description><![CDATA[ I modified the Makefile, just like Daid said, and it compiled the cpp levels and now my program ran fine. So I think all I had to do was to change the Makefile.<br /><br />P.S. The Output of the make clean was this:<br /><br /><pre class="bbcode">
&gt; "make" clean
clean ...

&gt; Process Exit Code: 0
&gt; Time Taken: 00:11
</pre>]]></description>
<dc:creator>Oscar_Richard</dc:creator>
<category>Coding</category><pubDate>Fri, 05 Nov 2010 21:29:32 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,61560,61689#msg-61689</guid>
<title>Re: Undefined references</title><link>http://forum.wiibrew.org/read.php?11,61560,61689#msg-61689</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Arikado</strong><br />Daid:<br />Thats not necessarily the case. I believe what he did was make his project, change main.cpp, and then make his project again causing only main.cpp to be compiled again because it was changed. I can back my theory up by pointing out that his other files have errors in the linking stage thus they must have passed the compiling stage previous to him posting the log here. Still though, I agree, I&#039;d like to see the output from a make clean anyway.</div></blockquote>
But wouldn&#039;t that still cause the level.cpp be included in the link, and thus resolving these undefined references? As the level.cpp is fine on its own.<br />Multiple paths with cpp files in them seem to make the most sense to me, with the #include &lt;../...&gt;<br /><br />(I don&#039;t have a love for Makefiles, I found them to be counterproductive. When they work they work "ok", but when they fail you have a steaming pile of shit. I am much bigger fan of CodeBlocks, which takes a bit of work to setup, but after that you can just throw in more files and it keeps working. And it handles header dependencies/changes with ease)]]></description>
<dc:creator>Daid</dc:creator>
<category>Coding</category><pubDate>Fri, 05 Nov 2010 15:54:32 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,61560,61688#msg-61688</guid>
<title>Re: Undefined references</title><link>http://forum.wiibrew.org/read.php?11,61560,61688#msg-61688</link><description><![CDATA[ Daid:<br />Thats not necessarily the case. I believe what he did was make his project, change main.cpp, and then make his project again causing only main.cpp to be compiled again because it was changed. I can back my theory up by pointing out that his other files have errors in the linking stage thus they must have passed the compiling stage previous to him posting the log here. Still though, I agree, I&#039;d like to see the output from a make clean anyway.]]></description>
<dc:creator>Arikado</dc:creator>
<category>Coding</category><pubDate>Fri, 05 Nov 2010 15:18:52 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,61560,61676#msg-61676</guid>
<title>Re: Undefined references</title><link>http://forum.wiibrew.org/read.php?11,61560,61676#msg-61676</link><description><![CDATA[ Agree with Daid.<br />If you have make: clean, then the filenames should have been listed before the linking of the *.elf.<br />It does seem that the files are not being seen / noticed in the compilation stages. Maybe put them in the same folder as the main.cpp file or add the directory into your makefile in which the files are being stored.]]></description>
<dc:creator>Ksmiler</dc:creator>
<category>Coding</category><pubDate>Fri, 05 Nov 2010 01:16:57 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,61560,61670#msg-61670</guid>
<title>Re: Undefined references</title><link>http://forum.wiibrew.org/read.php?11,61560,61670#msg-61670</link><description><![CDATA[ Is the level.cpp in a subdirectory or something?<br /><br /><pre class="bbcode">&gt; "make" 
main.cpp
linking ... yosdemo.elf</pre>
Only shows that it compiles main.cpp, and not any other cpp file, while you say you have more files.<br /><br />If this is the case then update the SOURCES in the Makefile:<br /><pre class="bbcode">SOURCES		:=	source source/subdircontaininglevelcpp</pre>]]></description>
<dc:creator>Daid</dc:creator>
<category>Coding</category><pubDate>Thu, 04 Nov 2010 23:25:47 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,61560,61669#msg-61669</guid>
<title>Re: Undefined references</title><link>http://forum.wiibrew.org/read.php?11,61560,61669#msg-61669</link><description><![CDATA[ The output errors are the same even I do make clean.<br /><br />The reason I got level and level manager separated is because of level traveling, so I was trying to make level manager to tell level which stage will display first, which one will be next, etc.<br />So this is not necessary, and I can make them in one, right?<br /><br />Edit: I&#039;ll do it later.]]></description>
<dc:creator>Oscar_Richard</dc:creator>
<category>Coding</category><pubDate>Thu, 04 Nov 2010 22:53:14 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,61560,61629#msg-61629</guid>
<title>Re: Undefined references</title><link>http://forum.wiibrew.org/read.php?11,61560,61629#msg-61629</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Arikado</strong><br />Edit: Just realized "Level" is in the levelManager.cpp file. Still though, thats bad practice to use it like that. I cant even imagine all the scoping problems that&#039;s going to give you. Move it into your levelManager class.</div></blockquote>I think you wanted to say "global variable BAD", move that one to the LevelManager class?]]></description>
<dc:creator>Daid</dc:creator>
<category>Coding</category><pubDate>Thu, 04 Nov 2010 16:30:02 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,61560,61628#msg-61628</guid>
<title>Re: Undefined references</title><link>http://forum.wiibrew.org/read.php?11,61560,61628#msg-61628</link><description><![CDATA[ You dont have anything named "Level" in your "levelManager" class definition.<br /><br />Edit: Just realized "Level" is in the levelManager.cpp file. Still though, thats bad practice to use it like that. I cant even imagine all the scoping problems that&#039;s going to give you. Move it into your levelManager class.]]></description>
<dc:creator>Arikado</dc:creator>
<category>Coding</category><pubDate>Thu, 04 Nov 2010 16:16:17 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,61560,61620#msg-61620</guid>
<title>Re: Undefined references</title><link>http://forum.wiibrew.org/read.php?11,61560,61620#msg-61620</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>LaserFlash</strong><br />Try updating to the latest libogc and see if that works.</div></blockquote>Don&#039;t reply if you don&#039;t understand the error at all. This has nothing to do with libogc.<br /><br />technik&#039;s sollution might work. It looks like level.cpp isn&#039;t rebuild after you changed it. If it doesn&#039;t work after a "make clean", then show us the output from "make" after you did a clean, that might help us find your problem.]]></description>
<dc:creator>Daid</dc:creator>
<category>Coding</category><pubDate>Thu, 04 Nov 2010 10:07:16 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,61560,61592#msg-61592</guid>
<title>Re: Undefined references</title><link>http://forum.wiibrew.org/read.php?11,61560,61592#msg-61592</link><description><![CDATA[ Sometimes all you have to do is make clean, then make again]]></description>
<dc:creator>technik</dc:creator>
<category>Coding</category><pubDate>Wed, 03 Nov 2010 23:56:26 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,61560,61585#msg-61585</guid>
<title>Re: Undefined references</title><link>http://forum.wiibrew.org/read.php?11,61560,61585#msg-61585</link><description><![CDATA[ It could be a mix up with your classes, try technik&#039;s solution, make clean will remove any object file.]]></description>
<dc:creator>LaserFlash</dc:creator>
<category>Coding</category><pubDate>Wed, 03 Nov 2010 22:41:10 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,61560,61560#msg-61560</guid>
<title>Undefined references</title><link>http://forum.wiibrew.org/read.php?11,61560,61560#msg-61560</link><description><![CDATA[ I got some trouble with a project I&#039;m trying to do for the Wii. When compiling it shows me this:<br /><br /><pre class="bbcode">
&gt; "make" 
main.cpp
linking ... yosdemo.elf
main.o: In function `levelManager::update()&#039;:
e:/yosdemo/source/lvl/level_manager.cpp:17: undefined reference to `mapLevel::draw()&#039;
main.o: In function `__static_initialization_and_destruction_0&#039;:
e:/yosdemo/source/lvl/level_manager.cpp:4: undefined reference to `mapLevel::~mapLevel()&#039;
e:/yosdemo/source/lvl/level_manager.cpp:4: undefined reference to `mapLevel::mapLevel()&#039;
collect2: ld returned 1 exit status
make[1]: *** [/e/yosdemo/yosdemo.elf] Error 1
"make": *** [build] Error 2

&gt; Process Exit Code: 2
&gt; Time Taken: 00:11</pre><br /><br />Here are the files:<br /><br />level_manager.cpp:<br /><pre class="bbcode">
#include "level_manager.h"
#include "level.h"

mapLevel Level;

levelManager::levelManager()
{
	
}
levelManager::~levelManager()
{

}

void levelManager::update()
{
	Level.draw();
};</pre><br />level_manager.h:<br /><pre class="bbcode">
#ifndef __LEVEL_MANAGER_H__
#define __LEVEL_MANAGER_H__

class levelManager
{
	public:
		levelManager();
		~levelManager();
		void update();
		//bool draw();
};

#endif</pre><br />level.cpp:<br /><pre class="bbcode">
#include "../redblock.h"
#include "../camera.h"
#include "level.h"
#include "map.h"

#define tilew (16)
#define tileh (16)

GRRLIB_texImg * block;

mapLevel::mapLevel()
{
	block = GRRLIB_LoadTexture(spr_redblock);
	mapw=32;
	maph=15;
}


mapLevel::~mapLevel()
{
}

void mapLevel::start()
{
	block = GRRLIB_LoadTexture(spr_redblock);
	mapw=32;
	maph=15;
}

bool mapLevel::draw()
{
	for (x=0; x&lt;=mapw; x++) {
		for (y=0; y&lt;=maph; y++) {
			if (testlevel_map0[y][x]!=0) {
				GRRLIB_DrawImg(x*tilew+camx, y*tileh, block, 0, 1, 1, 0xFFFFFFFF);
			}
		}
	}
return true;
};</pre><br />level.h:<br /><pre class="bbcode">
#ifndef __LEVEL_H__
#define __LEVEL_H__

class mapLevel
	{
		public:
			mapLevel();
            ~mapLevel();
			void start();
			bool draw();
			int x, y;
			int tilew, tileh;
			int mapw, maph;
	};
#endif</pre><br />Makefile:<br /><pre class="bbcode">
#---------------------------------------------------------------------------------
# Clear the implicit built in rules
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(DEVKITPPC)),)
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPPC)
endif

include $(DEVKITPPC)/wii_rules

#---------------------------------------------------------------------------------
# TARGET is the name of the output
# BUILD is the directory where object files & intermediate files will be placed
# SOURCES is a list of directories containing source code
# INCLUDES is a list of directories containing extra header files
#---------------------------------------------------------------------------------
TARGET		:=	$(notdir $(CURDIR))
BUILD		:=	build
SOURCES		:=	source
DATA		:=	data  
INCLUDES	:=

#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------

CFLAGS	= -g -O2 -Wall $(MACHDEP) $(INCLUDE)
CXXFLAGS = $(CFLAGS)

LDFLAGS	=	-g $(MACHDEP) -mrvl -Wl,-Map,$(notdir $@).map

#---------------------------------------------------------------------------------
# any extra libraries we wish to link with the project
#---------------------------------------------------------------------------------
 LIBS    := -lgrrlib -lfreetype -lpngu -lpng -ljpeg -lz -lfat 
 LIBS    += -lwiiuse 
 LIBS    += -lmodplay -lasnd 
 LIBS    += -lbte -logc -lm 

#---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing
# include and lib
#---------------------------------------------------------------------------------
LIBDIRS	:=		$(CURDIR)

#---------------------------------------------------------------------------------
# no real need to edit anything past this point unless you need to add additional
# rules for different file extensions
#---------------------------------------------------------------------------------
ifneq ($(BUILD),$(notdir $(CURDIR)))
#---------------------------------------------------------------------------------

export OUTPUT	:=	$(CURDIR)/$(TARGET)

export VPATH	:=	$(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
					$(foreach dir,$(DATA),$(CURDIR)/$(dir))

export DEPSDIR	:=	$(CURDIR)/$(BUILD)

#---------------------------------------------------------------------------------
# automatically build a list of object files for our project
#---------------------------------------------------------------------------------
CFILES		:=	$(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
CPPFILES	:=	$(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
sFILES		:=	$(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
SFILES		:=	$(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.S)))
BINFILES	:=	$(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*)))

#---------------------------------------------------------------------------------
# use CXX for linking C++ projects, CC for standard C
#---------------------------------------------------------------------------------
ifeq ($(strip $(CPPFILES)),)
	export LD	:=	$(CC)
else
	export LD	:=	$(CXX)
endif

export OFILES	:=	$(addsuffix .o,$(BINFILES)) \
					$(CPPFILES:.cpp=.o) $(CFILES:.c=.o) \
					$(sFILES:.s=.o) $(SFILES:.S=.o)

#---------------------------------------------------------------------------------
# build a list of include paths
#---------------------------------------------------------------------------------
export INCLUDE	:=	$(foreach dir,$(INCLUDES), -iquote $(CURDIR)/$(dir)) \
					$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
					-I$(CURDIR)/$(BUILD) \
					-I$(LIBOGC_INC)

#---------------------------------------------------------------------------------
# build a list of library paths
#---------------------------------------------------------------------------------
export LIBPATHS	:=	$(foreach dir,$(LIBDIRS),-L$(dir)/lib) \
					-L$(LIBOGC_LIB)

export OUTPUT	:=	$(CURDIR)/$(TARGET)
.PHONY: $(BUILD) clean

#---------------------------------------------------------------------------------
$(BUILD):
	@[ -d $@ ] || mkdir -p $@
	@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile

#---------------------------------------------------------------------------------
clean:
	@echo clean ...
	@rm -fr $(BUILD) $(OUTPUT).elf $(OUTPUT).dol

#---------------------------------------------------------------------------------
run:
	psoload $(TARGET).dol

#---------------------------------------------------------------------------------
reload:
	psoload -r $(TARGET).dol


#---------------------------------------------------------------------------------
else

DEPENDS	:=	$(OFILES:.o=.d)

#---------------------------------------------------------------------------------
# main targets
#---------------------------------------------------------------------------------
$(OUTPUT).dol: $(OUTPUT).elf
$(OUTPUT).elf: $(OFILES)

#---------------------------------------------------------------------------------
# This rule links in binary data with the .jpg extension
#---------------------------------------------------------------------------------
%.jpg.o	:	%.jpg
#---------------------------------------------------------------------------------
	@echo $(notdir $&lt;)
	$(bin2o)
	
#--------------------------------------------------------------------------------- 
 %.png.o :       %.png 
#---------------------------------------------------------------------------------
	@echo $(notdir $&lt;) 
	$(bin2o) 

%.bin.o	:	%.bin
#---------------------------------------------------------------------------------
	@echo $(notdir $&lt;)
	$(bin2o)

-include $(DEPENDS)

#---------------------------------------------------------------------------------
endif
#---------------------------------------------------------------------------------</pre><br />I really don&#039;t know why it is not taking the mapLevel&#039;s.<br />I use Programmers Notepad, of course. I dont know if it is something to do with the Makefile I have.<br />If there&#039;s a missing file I have to put, let me know.]]></description>
<dc:creator>Oscar_Richard</dc:creator>
<category>Coding</category><pubDate>Wed, 03 Nov 2010 19:21:46 +0100</pubDate></item>
</channel>
</rss>