Subj : Re: Error: Unresolved external To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Wed Feb 18 2004 10:11 am The command interpreter is the part of Windows that accepts your text commands, decides what they mean and executes the tasks. The character '+' is an operator to that command interpreter. Under Windows NT, 2000 and XP the character '&' is also an operator. Because the paths into which the items to be use are installed contain letters '+' and '&' in the directory names commands specifying those directories will not be correctly interpreted. To illustrate what '+' does, this command: copy file1.cpp + file2.cpp file3.cpp creates file3.cpp which is a concatenation of the first two files. When the compiler executes a command line to drive the linker the odd characters in the paths can easily cause unintended behavior. If code uses a library other than the compiler-supplied libraries that are used by default then that library must be listed on the command line. If the compiler is allowed to also perform the link step then the name of the library given must include the .LIB extension. For instance, if the source file is DIBmain.cpp and the library containing some of what it uses is MyMfc.lib then a command line to build it as a console application might be: bcc32 -WC DlBmain MyMfc.lib I see that you are including a source file into your code > #include "RGBtoHLS.cpp" That is not the best practice. If you use more than one source file to build a program then list them all on the command line: bcc32 -WC DlBmain RGBtoHLS MyMfc.lib .. Ed > lasombra wrote in message > news:40336e9d@newsgroups.borland.com... > > In the internet i found several descriptions of that problem, but > nothing helped me. I use BCC 5.5.1, installed in > "D:\Developement\C & C++\BCC552". > The file bcc32.cfg is configured as follow: > -I"D:\Development\C & C++\BC551\include" > -L"D:\Development\C & C++\BC551\lib";"D:\Development\C & C++\ > BC551\Lib\PSDK" > > The file ilink32.cfg is configured as follow: > -L"D:\Development\C & C++\BC551\lib";"D:\Development\C & > C++\BC551\Lib\PSDK" > > The file I want to compile is DIBmain.cpp, which contains > something like that: > #include "stdafx.h" > #include "DIB.h" > #include "Image.h" > #include "RGBtoHLS.cpp" > > int main(int argc, char* argv[]) { > .... > } > > The inluded files are in the same directory as the DIBmain.cpp > (E:\DEVELOPMENT\C++\FACEREC\), and all OBJ-Files are > generated. But I get the following error: > Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland > Error: Unresolved external 'Image::~Image()' referenced from > E:\DEVELOPMENT\C++\FACEREC\DIBMAIN.OBJ > Error: Unresolved external 'DIB::~DIB()' referenced from > : > I'm not an advanced C++ programmer, so can anybody help me? > Where's the problem? .