Hi all, I was hoping someone here may be able to help me with this. I have created a console mode application and turned off "Build with Runtime packages" - a sample of code exhibiting the problem is shown below.
When I attempt to build this project, I get an error stating "[Linker Fatal Error] Fatal: Unable to open file 'CONTROLS.OBJ'". In my BDS lib directory I have a CONTROLS.DCU file, but not CONTROLS.OBJ file. If I build with "Build with Runtime packages" turned on, then I don't get the problem. Can anybody tell me which file I need to link in to get rid of this message? --snip-- #include <vcl.h> #pragma hdrstop #include "smtpprot.hpp" #pragma package(smart_init) #pragma link "SmtpProt" //--------------------------------------------------------------------------- #pragma argsused int main(int argc, char* argv[]) { TSyncSmtpCli* cliSmtp = new TSyncSmtpCli(NULL); cliSmtp->FromName = "[EMAIL PROTECTED]"; cliSmtp->HdrFrom = "[EMAIL PROTECTED]"; cliSmtp->RcptName->Clear(); cliSmtp->RcptName->Add("[EMAIL PROTECTED]"); cliSmtp->HdrTo = "[EMAIL PROTECTED]"; cliSmtp->HdrSubject = "Test Message"; cliSmtp->MailMessage->Text = "This is a test message"; cliSmtp->Host = "smtp.mydomain.com"; cliSmtp->ConnectSync(); cliSmtp->HeloSync(); cliSmtp->MailFromSync(); cliSmtp->RcptToSync(); cliSmtp->DataSync(); delete cliSmtp; cliSmtp = NULL; return 0; } --snip-- Regards, Bevan -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be