How to build a C ++ project from VS11 using the VS2003 toolkit?

I tried to add a copy of the (working) tool platform for Visual C ++ 2005 to C: \ Program Files (x86) \ MSBuild \ Microsoft.Cpp \ v4.0 \ Platforms \ Win32 \ PlatformToolsets \ v71, replacing everything that makes sense.

But when I try to compile my project, the output disappoints:

1> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.6030 for 80x86 1> Copyright (C) Microsoft Corporation 1984-2002. All rights reserved. 1> 1> cl ΓΏΓΎ/ 1> 1>cl : Command line warning D4024: unrecognized source file type 'ΓΏΓΎ/', object file assumed 1> Microsoft (R) Incremental Linker Version 7.10.6030 1> Copyright (C) Microsoft Corporation. All rights reserved. 1> 1> /out:.exe 1>  β– / 1>LINK : fatal error LNK1181: cannot open input file ' β– /.obj' ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== 

Looks like a character set problem for me, but has anyone ever made it work?

+4
source share
3 answers

I think that if you follow this link, you will find the answer you are looking for.

It looks like you have cl.dll no data or no correct version, so you may not completely convert the tool chain.


No on the side, I'm curious why are you trying to do this

0
source

Why in the world do you want to overwrite files? It should be as simple as changing the executable directory inside the project. when whenever he looks for cl.exe / link.exe, where will he go. ProjectProperties-> Configuration Properties β†’ VC ++ Directories. just create a bunch of configurations. and configure for each compiler. It should work fine. Keep in mind that you may need to configure the source, turn it on, etc., but everything should work.

0
source

replacing everything that made sense

I believe you skipped the file, and thus your cl.exe picked up the wrong version of the dependent DLL.

In my Microsoft Visual Studio .NET 2003 / Vc7 / bin folder, I see the following files that are necessary for compilation:

 cl.exe Microsoft C/C++ Compiler Driver c1.dll Microsoft Visual C Compiler Front End c1xx.dll Microsoft Visual C++ Compiler Front End c2.dll Microsoft 80x86 Compiler Back End 

Other files (ml.exe, link.exe, lib.exe, ...) will also be needed to create the binary file. But you are not currently compiling.

For a C ++ project, you will need c1xx.dll in version 13.10.3077.0.

By the way: Good idea. I also want to try when I get around. I would appreciate if you can post the final solution here.

0
source

Source: https://habr.com/ru/post/1400358/


All Articles