Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

( C++) Unresolved external 'WinMain' referenced from [...]\CBUILDER6\LIB\C0W32.OBJ

 

Link error.

 

IDE: C++ Builder 6.0

Project type: VCL

 

 

 

 

 

Full error message

 

[Linker Error] Unresolved external 'WinMain' referenced from [...]\CBUILDER6\LIB\C0W32.OBJ

 

 

 

 

 

Cause

 

This happens if you save the project and unit name under the same name.

Solution

 

Save the project and unit name under a different name.

 

Personally, all my Project filenames start with 'Project', all my Units start with 'Unit' and all my Forms start with 'UnitForm'. This way, you never run into trouble.

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict