Article View: comp.windows.ms.programmer
Article #613Re: Using Zortech C++ and Turbo C++ with MS Windows SDK
From: Walter Bright
Date: Thu, 08 Nov 1990 18:33
Date: Thu, 08 Nov 1990 18:33
21 lines
1494 bytes
1494 bytes
In article <1990Nov5.062543.10383@gpu.utcs.utoronto.ca> avo@gpu.utcs.utoronto.ca (A. Bashir) writes: <A - Zortech C++ 2.0: <The simple test programs I tried, compiled and ran fine (include files and <libraries were the MS ones). Once I introduced floating point numbers which <required resolving some 'compiler helper functions' and floating point libraries <with the Zortech 'zls.lib' library file, I started to get "C run time error <message". What command are you sending to the linker? The SDK libraries must be specified first, followed by the Zortech libraries. The trouble probably stems from the fact that MSC functions that return a double actually return a pointer to a double. ZTC functions that return a double return it in the registers AX,BX,CX,DX. Thus, if you are using the function sin(), you will have pulled in the MSC one from the SDK libraries but ZTC expects the return value to be in AX,BX,CX,DX, which it isn't. The reverse problem can happen too. This is not an ideal situation, and we are working to fix it.
Technical Details
Message-ID:
<148@nazgul.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!pilchuck!dataio!fnx!nazgul!brightReferences:
<1990Nov5.062543.10383@gpu.utcs.utoronto.ca>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!pilchuck!dataio!fnx!nazgul!bright From: bright@nazgul.UUCP (Walter Bright) Newsgroups: comp.windows.ms.programmer,comp.lang.c++ Subject: Re: Using Zortech C++ and Turbo C++ with MS Windows SDK Message-ID: <148@nazgul.UUCP> Date: 8 Nov 90 18:33:39 GMT References: <1990Nov5.062543.10383@gpu.utcs.utoronto.ca> Reply-To: bright@nazgul.UUCP (Walter Bright) Organization: Zortech, Seattle Lines: 21