Romdisk with Code::Blocks?

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
User avatar
epicasian
DCEmu Fast Newbie
DCEmu Fast Newbie
Posts: 23
Joined: Fri Mar 26, 2010 8:34 pm
Location: WoFoCo, KY
Has liked: 0
Been liked: 0

Romdisk with Code::Blocks?

Post by epicasian » Fri May 28, 2010 9:36 pm

EDIT: I've figured it out.

When I'm trying to compile this code:

Code: Select all

extern uint8 romdisk[];
KOS_INIT_FLAGS(INIT_DEFAULT | INIT_MALLOCSTATS);
KOS_INIT_ROMDISK(romdisk)
I get this error:
.objs\main.o:(.data+0x0)||undefined reference to `_romdisk'|
I'm wondering if anyone can tell me how to compile this in Code::Blocks without using makefiles.

Thanks in advance,
EpicAsian

PS. If you can't tell, I'm using DDEr4
Thanks again
Image
Image
shametblame
DCEmu Fast Newbie
DCEmu Fast Newbie
Posts: 21
Joined: Wed Aug 19, 2009 5:45 am
Has liked: 0
Been liked: 0

Re: Romdisk with Code::Blocks?

Post by shametblame » Mon Sep 13, 2010 3:49 pm

Hi!!

I also program under Codeblocks.
In fact, I don't use any romdisks. When I want to load a file, i write for example:

IMG_load ("cd/dossier/blablabla/image.bmp).

It reads directly from the CD and it works like a charm!!
User avatar
emptythought
DC Developer
DC Developer
Posts: 2015
Joined: Wed Jan 30, 2002 9:14 am
Location: UNITED STATES NRN
Has liked: 0
Been liked: 0
Contact:

Re: Romdisk with Code::Blocks?

Post by emptythought » Wed Sep 15, 2010 1:52 pm

Add romdisk.o to the linker line in your project.
Post Reply