[Linker Fatal Error] Fatal: Unable to open file 'WINDOWS.OBJ
Posted: Wed Sep 01, 2004 10:49 am
C++Builder 6
Uncheck Build with rumtime packages.
Uncheck Build with rumtime packages.
high quality low level programming
http://forum.madshi.net/
Code: Select all
#include <madCodeHook.hpp>
#include <madRemote.hpp>
#pragma comment(lib, "madCodeHook_.lib")
#pragma comment(lib, "madRemote_.lib")
...
yes.madshi wrote:You don't need the pragma links. Using that #include is enough. Does the problem still occur when using #include only?
Code: Select all
[Linker Fatal Error] Fatal: Unable to open file 'SYSTEM.OBJ'
Code: Select all
[Pascal Error] pasall.tmp(4): Identifier redeclared: 'system'
Yes, the problem occur in the brand new project.madshi wrote:Very strange. Could you please try with a brand new project? Does the problem occur there, too?
Are you using the BCB evaluation version?
Oh, when using #include only:madshi wrote:You don't need the pragma links. Using that #include is enough. Does the problem still occur when using #include only?
Code: Select all
[Linker Error] Unresolved external '__stdcall Madcodehook::AmSystemProcess()' referenced from D:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\UNIT1.OBJ
madshi wrote:I've tested it again. With runtime packages you don't need the #pragma stuff. But not using runtime packages you need to add this:
#pragma link "madCodeHook.obj"
Code: Select all
[Linker Fatal Error] Fatal: Unable to open file 'WINDOWS.OBJ'
Code: Select all
void __fastcall TForm1::Button1Click(TObject *Sender)
{
AmSystemProcess();
}
Code: Select all
#include <madCodeHook.hpp>
Code: Select all
#pragma link "madCodeHook"
Code: Select all
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
#include <madCodeHook.hpp>
#pragma link "madCodeHook"
void __fastcall TForm1::Button1Click(TObject *Sender)
{
AmSystemProcess();
}
//---------------------------------------------------------------------------