MSVC15 - forcing vtables into the _TEXT or _CODE segment

J

James FitzGerald

I am building a small memory model DOS exe (does not actually run in
dos but in a custom 16bit environment). For complex reasons I am not
allowed to have any relocatable items.

I have run into a problem where the compiler is putting my vtables
into a new segment (COMDAT_SEG1). I would like to force the compiler
to stick these into a default segment such as the _TEXT segment or
_CODE segment.

The classes are defined as far, and need to be because I need a far
'this' pointer.

Can anyone provide me with a possible solution or lead?

Thanks,

James.
 
J

Jack Klein

I am building a small memory model DOS exe (does not actually run in
dos but in a custom 16bit environment). For complex reasons I am not
allowed to have any relocatable items.

I have run into a problem where the compiler is putting my vtables
into a new segment (COMDAT_SEG1). I would like to force the compiler
to stick these into a default segment such as the _TEXT segment or
_CODE segment.

The classes are defined as far, and need to be because I need a far
'this' pointer.

Can anyone provide me with a possible solution or lead?

Thanks,

James.

You seem to have picked two highly inappropriate groups to post to.

It seems likely that DOS exe's are not really topical in a Windows
programming group, and the rest of your question is compiler specific,
not a language issue at all.

Perhaps could help you.
 
J

James FitzGerald

Thanks Jack. Google wouldn't let me, but I'll try something other
than Googles web interface.

Cheers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top