0

Hello there!

I wrote a small program in C on Windows using DevC++. It works perfectly, but when I try to run it on Linux I get compiler erros at these lines:

void printOctets(int octets[][], char []); 
void printInterval(int suntwk[][], int brdc[][]);

This is a college assignment and I'm supposed to write this for Linux.

I'm lost, don't know what to do.

Any hints??

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by marcosjp
0

It will help to know what the error messages are. I'm supprised those compiled with a MSWindows compiler. You can't leave both dimensions of the arrays unspecified

void printOctets(int octets[10][], char []); 
void printInterval(int suntwk[10][], int brdc[10][]);
0

Indeed!
Solved the problem.
I specified the array dimensions and things worked perfeclty.
This is what happens when you stop working with a language for some time and delve into another one.
Thanks!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.