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??

Recommended Answers

All 2 Replies

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][]);

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!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.