random notes to myself

April 21, 2009

tell DDK to not do safeseh

Filed under: Uncategorized — dbgnotes @ 4:15 am

Using the new DDK (build 6002) to build stuff, you will sometimes get an error like this:

c:\winddk\6001.18002\lib\wxp\i386\sehupd.lib
engine.lib(engine.obj) : error LNK2026: module unsafe for SAFESEH image.
errors in directory c:blah\
c:\blah\engine.lib(engine.obj) : error LNK2026: module unsafe for SAFESEH image.
c:\blah\objchk_wxp_x86\i386\blah.exe : fatal error LNK1281: Unable to generate SAFESEH image.
c:\blah\objchk_wxp_x86\i386\blah.exe : error LNK1281: Unable to generate SAFESEH image.

SafeSEH is a security feature in new VC compilers… sometimes we don’t want/need them.  To make it so that we do not use SafeSEH, you need to pass in the option to the “sources” file:

NO_SAFESEH = 1

DO NOT put:

LINKER_FLAGS = /SafeSEH:NO

because it wont work.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: