473,324 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Compiler question

Hi,

we have the C/C++ code compiled in 16-bit compiler under DOS. assume it
as library.

This library should be used to write code in VC++ and should be
compiled in 32-bit compiler under windows.

Now the problem is when i try to compile the newly wrote VC++ code
linking with library (written in C/C++ code and compiled in 16-bit DOS
compiler) it is throwing error message.

Is it possible to use this library? Any workaround? Your help is
appreciated.

Thanks,
Kaizen

Jan 12 '06 #1
3 1399
kaizen wrote:
Hi,

we have the C/C++ code compiled in 16-bit compiler under DOS. assume it
as library.

This library should be used to write code in VC++ and should be
compiled in 32-bit compiler under windows.

Now the problem is when i try to compile the newly wrote VC++ code
linking with library (written in C/C++ code and compiled in 16-bit DOS
compiler) it is throwing error message.

Is it possible to use this library? Any workaround? Your help is
appreciated.

Thanks,
Kaizen


Wrong group. Try microsoft.public.vc.language.
Jan 12 '06 #2
On new VC++ no straight way to do.
And as suggested post on correct grp.

ketan

Jan 12 '06 #3

"kaizen" <ks*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
we have the C/C++ code compiled in 16-bit compiler under DOS. assume it
as library.

This library should be used to write code in VC++ and should be
compiled in 32-bit compiler under windows.

Now the problem is when i try to compile the newly wrote VC++ code
linking with library (written in C/C++ code and compiled in 16-bit DOS
compiler) it is throwing error message.

Is it possible to use this library?
No. You cannot use 16 bit binaries with 32 bit code.
Any workaround? Your help is appreciated.


You need to obtain the source to the 16 bit binary code and recompile it for
32 bits. Even then, it probably will need considerable porting work, as
Win32 is very different from DOS programming.

Walter Bright
www.digitalmars.com C, C++, D programming language compilers
Jan 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: madhu.mys | last post by:
Which C++ compiler do you use for Windows and why ?
25
by: Mohd Hanafiah Abdullah | last post by:
Axiomatic Solutions Sdn Bhd announces the availability of AMPC version 1.2. You can purchase AMPC online now at: http://www.axiomsol.com/hedesu/shopping/index.php Major Changes -------------...
7
by: Tao Wang | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I saw cuj's conformance roundup, but the result is quite old. I think many people like me want to know newer c++ standard conformance test...
10
by: Ardhendu Nandan | last post by:
I am trying to compile Gcc compiler in Windows O/S.I have downloaded entire source Code of this compiler at tries to run it in DEVCPP but I am gating some linker error and some header files missing...
14
by: joshc | last post by:
I'm writing some C to be used in an embedded environment and the code needs to be optimized. I have a question about optimizing compilers in general. I'm using GCC for the workstation and Diab...
4
by: Today's Mulan | last post by:
I guess this is new, at least to people who don't know about this, like me, please be prepared to give me a satifying answer, so please tell me how the compiler "knows" variable "i" as in a...
30
by: lovecreatesbea... | last post by:
K&R says the following in the preface to the first edition, "... the C compiler, and ... are written in C." I'm wondering, does it say even the first / original C compiler was written in C?
5
by: hyderabadblues | last post by:
Following is an abstract of my code Compiler is giving me an error at funciton call func1 as argument of type void * is not compatible with parameter of type VP typedef void * VP; struct name...
41
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
27
by: Dave | last post by:
I'm having a hard time tying to build gcc 4.3.1 on Solaris using the GNU compilers. I then decided to try to use Sun's compiler. The Sun Studio 12 compiler reports the following code, which is in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.