MarcO
New Member
Posts: 2
|
Post by MarcO on Jun 8, 2004 9:26:07 GMT -5
Hi Kevin,
I am trying to compile a C++Builder 6 program to create a console program. I am getting the error filectrl.obj not found from the linker. But when I compile other programs(windows application) that use vclzip I don't get any errors.
Is there something special that has to be done for console programs.
This is the program below. It is very simple.
Thanks. Marc
//---------------------------------------------------------------------------
#include <vcl.h> #include "VCLUnZip.hpp" #include "kpZipObj.hpp"
#pragma hdrstop
//---------------------------------------------------------------------------
#pragma argsused #pragma link "VCLUnZip" int main(int argc, char* argv[]) {
TVCLUnZip* Zipper = new TVCLUnZip(Application);
Zipper->ZipName = "c:\test\Zipfile.zip"; // set the zip filename Zipper->ReadZip(); // open it and read its information
// List filenames in zip file
// determine which files to unzip
Zipper->FilesList->Add("*.*"); // unzip all .cpp files
Zipper->DoAll = True; // Don't unzip all files
Zipper->DestDir = "c:\mydir"; // Set destination directory Zipper->RecreateDirs = true; // don't recreate directory structures Zipper->RetainAttributes = True; // Set attributes to original after unzipping
int NumUnzipped = Zipper->UnZip(); // Extract files, return value is the number of files actually unzipped
delete Zipper; return 0; }
|
|
MarcO
New Member
Posts: 2
|
Post by MarcO on Jun 8, 2004 10:03:43 GMT -5
I figured it out. I had to add
vclx.lib vcl.lib to the libraries and spare libs in my project file.
Thanks. Marc
|
|
|
Post by Kevin on Jun 9, 2004 17:56:30 GMT -5
Sorry for the delay I just now read your message, but I am glad you figured it out. :-)
|
|