[OpenAFS-win32-devel] Linker error __DllMainCRTStartup@12 while compiling OpenAFS on Win 7

Jeffrey Altman jaltman@secure-endpoints.com
Fri, 14 Jan 2011 10:23:58 -0500


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig55754D4C2C9F00E2990DD542
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Gautam:

You are going to have to provide additional information about your build
environment.  What tool chain are you using?  (compiler, sdk, wdk) and
more of the build output leading up to the failure.

afseventmsg_xxxx.dll libraries are resource only dlls.  They don't have
entry points.  Therefore, there should be no definition of a DllMain and
no import of a CRT startup function.

An examination of the afseventmsg_xxxx.dll libraries built by OpenAFS
show this:

Dump of file root.server\usr\afs\bin\afseventmsg_1032.dll

File Type: DLL

  Summary

        2000 .rsrc

There are no imports or exports.

Jeffrey Altman



On 1/14/2011 4:46 AM, Gautam U Raut wrote:
> Hi All,
>=20
> While compiling OpenAFS 1.5.78 on Windows 7, I am facing following erro=
r:
>=20
> LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12=

> C:\OPENAF~1.78-\OPENAF~1.78\dest\amd64_w2k\checked\root.server\usr\afs\=
bin\afseventmsg_1032.dll
> : fatal error LNK1120: 1 unresolved externals
>=20
> Let me know your suggestions.
>=20
> Thanks & Regards,
> Gautam


--------------enig55754D4C2C9F00E2990DD542
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)

iQEcBAEBAgAGBQJNMGqQAAoJENxm1CNJffh4CcUH/RX3T1BBdu/GDXfGq40Tqe4b
0Du7mR/c36HCEa9u45AnkZ9m9r/bDC24/QvhpvzmX5dwlKlDW+cMXCF6qn78vJGh
Rj/q50Iidxuw1YZNJTQLlo4bWMsAE4joObhrmUxL0vXa3vM4C0AenBaHggtw26Pf
jhKjWnVasLx1s3Qc+HIzmUtanNnufO+qP+GoOlZt/e42jccHiTcatbpYiFN/F2lu
Do2w5f5UavqBbWqovs9J0qxdIKjB4QKaOwntGe5rgPlkJmsgdSC6IapgYoWdItOk
zFFuGebQtrM2B2UYZvyW3y+9mCIjSR/OOnSRKXMm3qEq2wHtYPzL+p3/Ec08i8E=
=1p70
-----END PGP SIGNATURE-----

--------------enig55754D4C2C9F00E2990DD542--