what is segment not defined ?
- From: "IceColdFire" <IceColdFire@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 4 May 2005 22:28:02 -0700
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(){...}
.
- Follow-Ups:
- Re: what is segment not defined ?
- From: Carl Daniel [VC++ MVP]
- Re: what is segment not defined ?
- Prev by Date: Re: Difference between an EXE and DLL ATL objects
- Next by Date: In memory layout of the C++ program
- Previous by thread: string to int
- Next by thread: Re: what is segment not defined ?
- Index(es):
Relevant Pages
|