Solved

linking multiple files in C++

Posted on 2000-02-17
3
199 Views
Last Modified: 2010-04-10
how do creatte project with multiple files and link them in Borland C++?
0
Comment
Question by:vijay35
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
WxW earned 10 total points
ID: 2534035
you just add in the IDE the new CPP file . When building , the object code will automatically linked .
0
 
LVL 33

Expert Comment

by:hongjun
ID: 2535026
Just keep all the files that is the .cpp and .h files in the same directory and then compile. BC will then automatically create a project for it.

hongjun
0
 
LVL 6

Expert Comment

by:WxW
ID: 2535473
No , the IDE requires explicitly setting on the CPP files , it won't include all in the directory .
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question