title: Borland C++ Builder 4 [Linker Error] Unresolved external
body: <p>I'm trying to compile an old project in Borland C++ Builder 4. I have a working exe and the source files for that, therefore someone must have managed to compile it earlier. However, when I open the project, check if the project hs all the necessary files in the resources and try to compile it, I keep getting the following linker error:</p>
  
  <p>[Linker Error] Unresolved external '_fastcall TMapperForm::Button1Click(System::TObject*)' referenced from ...\Unit1.obj</p>
  
  <p>I can see that it cannot find an object in the library but I am not sure how to resolve it, because the obj file with the same name as the main cpp file is in the same file as the other files of the project and seems fine. </p>
  
  <p>I have looked through the answers provided here for similar linker errors but none of what these have suggested worked for me. I have already tried the following:</p>
  
  <ul>
  <li>Adding the .obj file to the Project Resources.</li>
  <li>Trying to add pragma lines manually such as <code>#pragma link (Unit1.obj)</code></li>
  <li>Making sure that in Project>Options>Directories the right Include and Library paths were selected.</li>
  <li>Checking if all the packages have been added.</li>
  </ul>
  
  <p>None of this seems to work. I am fairly new to C++ and C++ Builder, so I am hoping that it is something trivial.</p>
  
  <p>Has anybody seen this particular error?</p>