HomeForumsWhat's newResources 
 
 
SGL S.8.8.1 Demo
television2000 - Jan 2, 2012
 television2000 Jan 2, 2012
Hi guys,

Ok so here's the issue :

The demo compiles fine by itself and I get no errors. But when I change the yama.map/cel/pal files I get an undeclared error.

Where are the files declared ?

When I looked through the SGL developers guide the declarations are in the "scrol.h" file.

But then when I change their names I get a undefined reference when I try to compile.

What am I doing wrong here ? Can someone please show me the proper way to use them ?

 Chilly Willy Jan 2, 2012
When changing the names of files, you may have several areas to change the names: in the h files may be one; if you incbin (or similar) the files, the places where you incbin would be another; if the files are in the makefile, you'll have to rename them there as well. I think the makefile is probably where you forgot to change the names.

 television2000 Jan 2, 2012
Hi Chilly.

I tried that just now. Still won't work.

I'm getting an "Undefined reference" to the 3 files.

Any other ideas/suggestions ?

 antime Jan 2, 2012
The declarations are in inc/ss_scrol.h, the definitions come via scl_data.c which just includes the cel/map/pal files. Make sure you're not linking against stale object files.

 television2000 Jan 2, 2012
Thanks Antime.

The demo compiles now but with a warnnig :

array "blabla_cel" assumed to have one element.

Gives me the same thing for the map and pal files.

Is this normal ?

 antime Jan 2, 2012
If you didn't get that warning when compiling the unmodified example, then no. Compare how the arrays are declared in the sample and in your modified files.

 television2000 Jan 7, 2012
After a few days break and upon further research into this, I come up with the errors :

[Linker error] undefined reference to `sdst_cel'

[Linker error] undefined reference to `sdst_cel'

[Linker error] undefined reference to `sdst_cel'

C:\SaturnOrbit\SGL_302j\SAMPLE\S_8_8_1\Makefile.win [Build Error] [sl_coff.coff] Error 1





This is beyond my understanding in programming and really is testing my patience !

Even when I checked the sl_coff.map file "presuming it's where the issue lies at" I still get the same error.

Now what ? How do I fix this issue ?








 antime Jan 7, 2012
Make sure there is actually a definition of sdst_cel somewhere and not only a declaration, and that you're linking all the object files. If you're still having problems, zip up the project and put it somewhere where I can take a look at it.

 television2000 Jan 9, 2012
Thanks Antime a bunch !

I found out what the error was, apparently I had different definitions in the .pal,.cel.map files than the entry commands i.e (Cel2Vram (file blabla);

Silly me.