Mailing List
Home
Forum Home
Mac Game - Mac game development
Rivers of MUD - a Diku and Merc based multiuser dungeon
SMAUG
Subjects
Getting UDP through NAT/firewalls/whatever for a game
Getting UDP through NAT/firewalls/whatever for a game
QuickTime errors
Python script as stand alone MUD server
Subject: Various sound problems
Fragment Shaders & GL TEXTURE RECTANGLE EXT
Subject: Timers and global variables
Re: Language and platform for Text MUD server
Apparent acquisition of Yantis (mysupersales) by IDE
HID keyboard
Getting UDP through NAT/firewalls/whatever for a game
Microsoft Sparkle
Subject: Director MX
Congratulations Horizons
Yet more problems fullscreen mode
Apple Dev Kitchen Them 's tasty vittles, Maw!
NSOpenGLContext, Pbuffers, and drawables
More DCR "theft " naughtiness
dynamic sprite creation and imaging lingo
Re: Find stuff in Flash array?
Effects of skill imbalances?
QuickTime errors
Rom 2 4/Quickmud Enhancement/Bug fix
Subject: Working with XML files/CFURL
smooth scrolling/subpixel tweening
RE: (Ron help me?) Flash text
Subject: Flash Racing
Subject: MudDev FAQ 2
Browser based games
Installing GLUT
Special character in Flash XML
 
Interesting Error

Interesting Error

2005-12-01       - By mud@(protected)

 Back
Reply:     1     2     3     4     5     6     7  



So, I am trying to pass a 2D char variable to a function and then do some stuff
with it. However, I am receiving this error and I am not quite sure why:

"arithmetic on pointer to an incomplete type"

Poking around the internet hasn't lead me to anywhere interesting. I thought it
was just my compiler on the linux box so I wrote a test program in dev-c++ so
we can see if that was so. This is written and is compiled in C:

void blah(char token[][]);

int main()
{
       char token[1][1];

       token[0][0] = 'c';

       blah(token);

       return 0;
}

void blah(char token[][])
{
                   printf("token: %c\n", token[0][0]);
}

It generates the same error.

I am assuming, as usual, that it is something obvious and after spending hours
(a good 4 hours straight) smashing my keyboard my eyes have gone out of
control!

Thank you!


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
This message was sent using IMP, the Internet Messaging Program.
--
ROM mailing list
ROM@(protected)
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom