Aitor Santamaría wrote:
Being used to BC, I'm experimenting with OpenWatcom, and before
What OW version?
What memory model?
Apparently, OW doesn't seem to like when I do use it's own MK_FP
(which is the same as in kernel's portab.h, with : ) and I do, for
example
char far *myvar =
Hello Robert,
2007/5/2, Robert Riebisch [EMAIL PROTECTED]:
Aitor Santamaría wrote:
Being used to BC, I'm experimenting with OpenWatcom, and before
What OW version?
What memory model?
Watcom 1.6, model Large.
Apparently, OW doesn't seem to like when I do use it's own MK_FP
(which is
Self-correction:
2007/5/2, Aitor Santamaría [EMAIL PROTECTED]:
I have redefined MK_FP as
(void *)((unsigned long)((unsigned short)(seg)*0x100)+((unsigned short)ofs))
I have redefined it as the more logical:
(void *)(((unsigned long)(seg)16)|((unsigned short)ofs))
which gives the shift amount
Aitor Santamaría wrote:
Watcom 1.6, model Large.
OK
Maybe you can use this.
***
#include i86.h
void main()
{
char far *myvar = MK_FP(0x40, 0x55);
}
***
The problem appears both as a global or as a local var of a function.
Are you sure? The code above compiles perfectly
Hi,
The code you wrote does, but this does not:
#include i86.h
char far *myvar = MK_FP(0x40, 0x55);
void main()
{
}
Aitor
2007/5/2, Robert Riebisch [EMAIL PROTECTED]:
Aitor Santamaría wrote:
Watcom 1.6, model Large.
OK
Maybe you can use this.
***
#include i86.h
void
Aitor Santamaría wrote:
The code you wrote does, but this does not:
I already knew. ;-)
What's wrong with the following (except more typing):
***
#include i86.h
char far *myvar;
void main()
{
myvar = MK_FP(0x40, 0x55);
}
***
Robert Riebisch
--
BTTR Software
http://www.bttr-software.de/
(1) That it is NOT what I want
(2) That I want to define a variable widely used accross sources.
2007/5/2, Robert Riebisch [EMAIL PROTECTED]:
Aitor Santamaría wrote:
The code you wrote does, but this does not:
I already knew. ;-)
What's wrong with the following (except more typing):
***
Aitor Santamaría wrote:
(1) That it is NOT what I want
*g*
(2) That I want to define a variable widely used accross sources.
That's what my latest code does. Don't you have main() in your sources?
;-)
Robert Riebisch
--
BTTR Software
http://www.bttr-software.de/
Hi Aitor,
Do you participate in OpenWatcom lists? Please send me a link, I would
like to participate too! I want to use templates, but it seems to be a
complicated topic...
Cheers,
Alain
Aitor Santamaría escreveu:
About the other stuff (why constant initialisations with : are not
allowed)