From: Paolo Baiardi Subject: DJGPP: no array with 'file' scope ? To: djgpp AT sun DOT soe DOT clarkson DOT edu Date: Wed, 2 Feb 94 9:58:00 MET Hi everyone, I started to work with djgpp two weeks ago. I have installed: djdev111 gpp257 djeoe111 dj111m1/m2 gcc257bn bnu22bn on a Texas Laptop, 486 AT 25MHz 4Mbytes RAM, DOS 6.00. Generally djggp works very well, but I discovered that it doesn't compile c++ programs with class object with file scope, i.e.: -*- class something { public: int a,b,c,d; public: something() {}; something(int x) { a = b = c = d = x; }; ~something() {}; }; something list_of_something[50]; main() {} -*- "gcc test.cc -lgpp" -> c:\gcc/tmp/cca0074:130:Error: Unknow pseudo-op `.section' The code above described is compiled flawlessy on Unix platforms with gcc relea- ses ranging from 2.3.3 to 2.5.8. If I insert the line something list_of_something[50]; inside a procedure scope, the code is compiled even with djgpp. Thanks in advance for any hint... Regards, Paolo -- +-----------------------------------------------------------------------------+ | Paolo Baiardi PhD Student - Genova University - Italy | | E-mail: kurgan AT dist DOT dist DOT unige DOT it | | | | "I work for the county out on 95 | | All day I hold a red flag and watch the traffic pass me by | | In my head a keep a picture of a pretty little miss | | Someday Mister I'm gonna lead a better life than this" | | [ Working on a highway - Bruce Springsteen ] | +-----------------------------------------------------------------------------+