The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Bug in #define?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

g.smith@bi1

UK
2 Posts

Posted - 07/12/2002 :  09:46:04 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
If I try to declare a global array with size determined by a previous #define, the compiler says "Error, syntax error in variable declaration.". However, it accepts the same declaration inside a function. Example (from the documentation):
#define BUFFER_BYTES 256
char lpBuff[BUFFER_BYTES];
Is this a real bug or am I just being silly?
Cheers,
Godfrey

easwar

USA
1965 Posts

Posted - 07/12/2002 :  1:39:19 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Godfrey,

Yes, that is a bug in 7Rel and 7SR1. It has been fixed since then and should be fine in the next service release (SR2).

Easwar
OriginLab.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000