+ Reply to Thread
Results 1 to 3 of 3

Thread: unresolved external symbol security_cookie

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    3

    unresolved external symbol security_cookie

    Hi,

    I'm building simple driver in Windows and when I compile I get this error: ntoskrnl.lib(loadcfg.obj) : error LNK2001: unresolved external symbol ___security_cookie. I'm using VC++ 2010 if it helps. Can someone help me out on this?

  2. #2
    Junior Member
    Join Date
    Dec 2011
    Posts
    2
    There can be 2 possible solutions that I know. Try both out.

    1. Make sure the Buffer Security Check is set to No(/GS-) in the properties under C/C++->Code Generation.
    2. You probably are using __try and __except. If you are building 32 bit app, in the Linker->General->Additional Library Directories, the path should be C:\WDK\lib\wxp\i386. Not the C:\WDK\lib\win7\i386. Note: You use the path where your WDK is.

    If you still want to use the C:\WDK\lib\win7\i386 for 32 bit app then you should not use __try and __except exception handler.

    Hope this helps!

  3. #3
    Junior Member
    Join Date
    Dec 2011
    Posts
    3
    Hi Bruce,

    The number 2 helped. Thanks a lot!

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts