HypersonicNinja
HypersonicNinja

Reputation: 99

Build issues with a C++ - C++/CLI - C# project (Borland and VS-specific components)

StackOverflow!

Today's issue is a bit odd, but please bear with me. Any advice / suggestions extremely appreciated!

I've inherited an old codebase on a project with some components that date back to 2002. There is no documentation at all for this project, and the original machine which had the build set up on no longer exists (the hard drive failed and there is no backup available...). The system interacts with, and controls, a robot arm. I have a full installation and the executable installed on a test machine with the appropriate hardware. The source is on a Subversion repository, but the logging messages are minimal and give no practical advice. It has been worked upon as recently as January but the developers left before I started. It was partially re-written with a new C#-based GUI. The project consists of C++, C++/CLI, and C#. It uses Boost and VTK. My problem, in a nutshell, is this: there is a client-critical bug in the control part of the software and I cannot build the project. There are no debugging symbols available and attaching the running exe doesn't work (probable reasons why below). Neither the pre-C# versions or the most up-to-date source build at all under any configuration I've tried.

To complicate matters further, it has been suggested - though I'm not sure about this - that the project used to be built via Borland C++ Builder V6, and has been since migrated across to Visual Studio. It still contains Borland-specific components, although most of these seem be conditional.

My manager swears that it will not build under VS, and must be compiled fully in Borland. The problem is that I can't get it to build in either without dozens of errors. There are definitely Borland-specific components (BPL files) but I don't know what they are or how they relate to the structure of the project.

I'm wondering if it needs to be built in Borland and then VS, or something like that. So, my question is: is there any way to try and deduce how to build this thing or is it just a question of trying every option until I hit the right one?

EDIT: error log follows. Please note: I'm well acquainted with VS but I've never used Borland until a couple of days ago. Noob alert!

The precise errors vary depending upon which version of the source I pull from the repository, but considering this thing apparently builds perfectly 'under the right conditions' the large amount of errors definitely imply issues with external dependencies, project settings, etc.

Upvotes: 1

Views: 1318

Answers (2)

user1517144
user1517144

Reputation: 11

I was getting similar error when I moved my project from Borland 2006 to Borland XE. The solution to this is, my code had included files from boost_1_34. I removed that include path from project and used the boost library provided along with new IDE. Program compiled successfully

Upvotes: 1

Hans Passant
Hans Passant

Reputation: 941217

but the developers left before I started

the hard drive failed and there is no backup available

I can't get it to build in either without dozens of errors.

This has software project disaster written all over it. You were probably hired in a last ditch attempt to rescue the investment by throwing meat at the problem. You're the meat. The odds are very low you'll be able to rescue it when even the original devs have given up on it.

You'll need to get a commitment from the management team to have any chance at all to bring this to a good end. Insist on the following:

  • They should hire at least one of the original principal engineers for a ridiculously high consultancy fee, calibrated so that No! is not an option.
  • They should hire a data recovery company to get the info off the failed disk
  • They should purchase all the original tools used to build the product. If they are no longer available from the vendor then look at an auction site, like ebay. Do not waste your time with trial versions.

If you see any hesitation in them committing to these steps, get the hell out of there.

Upvotes: 4

Related Questions