Error during compiling with $0

General Programming help in C, C++ or ASM, Compiling / Debugging, and R3000A Central Processing Unit (CPU) information
Post Reply
User avatar
wildmonkeydan
Interested PSXDEV User
Interested PSXDEV User
Posts: 7
Joined: Mar 03, 2021
I am a: Programmer, Artist
PlayStation Model: SCPH-5501

Error during compiling with $0

Post by wildmonkeydan » March 16th, 2021, 5:02 am

Complier Message
It also said on other compliers I tried to add '(' before $0, but nowhere have I referenced either the file name or just the string '$0'
Here's the code: Source Code
For reference the function anim() is to do with measuring a second for animation cycles.

User avatar
Shadow
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

Post by Shadow » March 18th, 2021, 3:21 am

Edit the changes I have shown in the example as needed.

Image
You do not have the required permissions to view the files attached to this post.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

User avatar
wildmonkeydan
Interested PSXDEV User
Interested PSXDEV User
Posts: 7
Joined: Mar 03, 2021
I am a: Programmer, Artist
PlayStation Model: SCPH-5501

Post by wildmonkeydan » March 20th, 2021, 8:39 am

That makes sense now, I never knew you had to define the data types of the parameters, I've only ever used codeblocks which just assumes what the data type is I guess. Thanks for the help!

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests