Compile several source files C++

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Boris Alfonso

Compile several source files C++

Post by Boris Alfonso »

Hello!

I’m trying TextPad 4.5.0 and tested to compile and link the C++ program using the free Borland C++ Builder compiler.

To compile and run a program with only one source file there is no problem. But I can’t compile my application that is split into several source files

I tested with the following tool:

Menu text: Build MyApp
Command: C:\Borland\BCC55\Bin\bcc32.exe
Parameters: -eMyApp.exe *.cpp
Initial directory: $FileDir
Capture Output: [x]
Save files: [x]

The following error is the result:

Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Error E2266: No file names given

Tool completed with exit code 1

What is wrong?

How to create a new project like you do in the Borland C++ Builder 5?

How to indicate the project path and how to add new node to the project?

Thanks
Boris.
just a friend

Re: Compile several source files C++

Post by just a friend »

Your best bet is to create a make file then use Borland's make utility to compile and link all files in your project.
Samir Greadly

Re: Compile several source files C++

Post by Samir Greadly »

I also used

Regular Expression:
^\([^(]+\)(\([0-9]+\)):

Registers :
File : 1
Line: 2

-------

When you compile, if there are no errors, it only gives you this error
Error: Unresolved external 'yourFunction(..................bla bla
for no apparent reason, but it actually compiles and links..

then when you use the above settings with the Build, it builds the exec succesfully.
Try that
Post Reply