Page 3 of 3

Posted: Fri Jan 14, 2005 11:28 am
by Tvspelsfreak
Check your makefile ([projectname].mak).
My guess is that DEVDIR is incorrect.

Posted: Fri Jan 14, 2005 4:07 pm
by Falco Girgis
Yeah, I'm almost positive that you're right, Tvspelsfreak.

Posted: Fri Jan 14, 2005 4:11 pm
by JS Lemming
You've done it again! It compiled.. but it did have 1 warning... didn't say what though. is that common?

Posted: Fri Jan 14, 2005 4:16 pm
by Falco Girgis
Actually, it is. I always get at least one warning. I'm sure it's one of two.

1) No newline at end of file

2) No global symbol at nmake blah blah whatever.

If it's the first one, just put a return at the end. If it's the second one, which it always is, who cares? Just forget about it...

Posted: Fri Jan 14, 2005 7:54 pm
by JS Lemming
Ok, about the errors on my compilation. I have narrowed them down and found this after fixing a strange define error. Here are the results:
Deleting intermediate files and output files for project 'PVR_TestGood - Win32 Debug'.
--------------------Configuration: PVR_TestGood - Win32 Debug--------------------
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
C:\DevKitDC\bin\createim c:\DREAMCAST\HOMEBREW\PVR_TestGood\romdisk.img c:\DREAMCAST\HOMEBREW\PVR_TestGood\romdisk
0 rom 41e89117 [0xffffffff, 0xffffffff] 37777777777, sz 0, at 0x0
1 . [0x1000 , 0x26494bf1] 0040755, sz 0, at 0x20
1 .. [0x1000 , 0x1fef2898] 0040755, sz 0, at 0x40 [link to 0x20 ]
C:\DevKitDC\bin\createo c:\DREAMCAST\HOMEBREW\PVR_TestGood\romdisk.img romdisk c:\DREAMCAST\HOMEBREW\PVR_TestGood\romdisk.o
C:\DevKitDC\bin\g++ -o PVR_TestGood.elf romdisk.o startup.o PVR_TestGood.cpp -I C:\DevKitDC\include -I C:\DevKitDC\kernel\arch\dreamcast\include -ml -m4-single-only -O2 -fno-builtin -fno-strict-aliasing -fomit-frame-pointer -fno-optimize-sibling-
calls -nostartfiles -nostdlib -Wl -Ttext=0x8c010000 -L C:\DevKitDC\lib -L C:\DevKitDC\sh-sega-dreamcast\lib -lkallisti -lgcc -ltsunami -lk++ -lparallax -lpcx -lz -lm -Ttext=0x8c010000
In file included from C:/DevKitDC/include/newlib-libm-sh4/math.h:9,
from C:/DevKitDC/include/math.h:17,
from /cygdrive/c/DevKitDC/include/g++-v3/bits/std_cmath.h:40,
from /cygdrive/c/DevKitDC/include/g++-v3/cmath:31,
from PVR_TestGood.cpp:7:
C:/DevKitDC/include/newlib-libm-sh4/sys/reent.h:183: field `_localtime_buf' has
incomplete type
NMAKE : fatal error U1077: 'C:\DevKitDC\bin\g++.exe' : return code '0x1'
Stop.
Error executing NMAKE.

PVR_TestGood.exe - 1 error(s), 0 warning(s)
Maybe you, Tvspelsfreak, recognize that error in the reent.h file?

Posted: Sat Jan 15, 2005 5:29 am
by Tvspelsfreak
I sure do, comment out line 183 in reent.h and it'll work.

Posted: Sat Jan 15, 2005 9:53 am
by Falco Girgis
I sure remember that too.

I just didn't remember how to fix it.

Damn I always hated that.

Posted: Sat Jan 15, 2005 11:26 am
by JS Lemming
Compilation Successful. Woot Ya'll!

But why the heck would somebody realese something so big as KOS and not give it just one single test compile before releasing it??? How do you get by with things like that?

Posted: Sat Jan 15, 2005 11:46 am
by Falco Girgis
That's the only thing I've encountered.

And actually, it really isn't that big. I've never met anybody else besides Tvspels and (I think GPF?) that used this setup.

It is the best, but people normally use that crappy Cygwin setup. . .

Oh, and also, people saying that the DC is only Devvable through Cygwin/Linux doesn't help any. . .