I get the following error after trying to compile Microsoft's code in Watcom:
The instruction at 0x69c16ed0 referenced memory at 0x00798000.
The memory could not be read. Error [E14]: Cannot execute (wlink): Error 0
The error I was having before was a .lib problem and that is fixed. I do not know how to force Watcom's complier to read a 32 bit address it says it can not read. If any one knows how to make Watcom's complier read that address please let me know. I was programming in OpenGL but I wanted to use DirectX if I can get it to work. I don't have any problems writing Windows programs from Watcom except for DirectX. Watcom's complier reads C, C++, and Assembly, and compiles them correctly. Are the DirectX .lib's only for Microsoft's C++

32 bit address Error
gordonhogenson
I am using Watcom's version 11 which was the last version that was supported. It has DOS4g and that was the reason I bought it. I was programming for linier memory and with the DOS4g it worked great. I wanted to write for DirectX but if my Watcom 11 will only work with lesser versions of DirectX how would I obtain for example DirectX 3.0 I do have DirectX program samples that came with Watcom 11 and they work fine. I am down loading VC++ right now but my connection speed is only 31.2 so it is going to take me several days to get.
kaneboy
No, they are not only for Microsoft's C++ compiler. What version of Watcom are you using It always helps to have the most up-to-date version of your compiler.
You migh also consider using Visual C++ Express (free download), just to see if the problem might be in your code or with the compiler/linker.