what is segment not defined ?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,
I am using edgcc to compile some c++programs..
everything goes smooth...
However when I try to compile programs with objects (any type maybe
int,char* ,class,struct ect) defined OUTSIDE main, compilation error occurs...

as
test.int.c
test.c(48) : warning C4068: unknown pragma
test.c(49) : error C2341: '.CRT$XCU' : segment must be defined using #pragma
dat
a_seg or code_seg prior to use

Kindly suggest what does it mean...

test.c has code outside main as
class X {
public:
int ix;
X(int ii=0) : ix(ii) {}
};

X ox;
int X::*pmi = &X::ix;
X *px = &ox;

main(){...}
.



Relevant Pages

  • Dismantling the Classics
    ... Nice and Smooth - I'd have to compile a mix. ... J-Live - I'd merge the first 2 lps into one somehow ... RBL Posse/Totally Insane - I'd somehow merge LESSON TO BE LEARNED with ...
    (rec.music.hip-hop)
  • Re: Smooth lines in Picturebox
    ... but a bit complex and also maybe too much to add to my installer. ... How do I compile to make the .exe? ... In GDI+ you can select the SmoothingModeAntiAlias for better and smooth ...
    (microsoft.public.vb.general.discussion)
  • Re: what is segment not defined ?
    ... > I am using edgcc to compile some c++programs.. ... > everything goes smooth... ... > However when I try to compile programs with objects (any type maybe ...
    (microsoft.public.vc.language)
  • Re: php.ini at FC2
    ... I finally uninstall the RPMs and compile with tar balls, everything run smooth, thx. ...
    (comp.os.linux.setup)
  • Re: php.ini at FC2
    ... I finally uninstall the RPMs and compile with tar balls, everything run smooth, thx. ...
    (comp.lang.php)