what is this compile error , my code compiles fine in debug mode but not release mode

This is a discussion on what is this compile error , my code compiles fine in debug mode but not release mode within the C++ Programming forums, part of the General Programming Boards category; Linking... libcp.lib(locale.obj) : error LNK2001: unresolved external symbol ___security_cookie libcp.lib(wlocale.obj) : error LNK2001: unresolved external symbol ___security_cookie libcp.lib(xlocale.obj) : error ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    303

    what is this compile error , my code compiles fine in debug mode but not release mode

    Linking...
    libcp.lib(locale.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libcp.lib(wlocale.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libcp.lib(xlocale.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libcp.lib(locale.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libcp.lib(wlocale.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libcp.lib(xlocale.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    Release/VNC Connecter.exe : fatal error LNK1120: 2 unresolved externals

  2. #2
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    It's not a compile error, it's a linker error. Check your linker settings on release as compared to debug
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    303
    and what settings am i looking for exactly

  4. #4
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    What libraries and files are being included for each mode (debug and release). And I don't mean #include.

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,045
    It might be in Project Options -> Linker Options or something.

    Anyway, be rest assured that it is not your code -- just the libraries you're linking it to.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Results in Debug and Release mode are different
    By jaro in forum C Programming
    Replies: 11
    Last Post: 05-27-2006, 11:08 AM
  2. Release vs. Debug mode builds
    By earth_angel in forum C++ Programming
    Replies: 5
    Last Post: 11-10-2005, 03:41 PM
  3. Replies: 3
    Last Post: 03-27-2004, 11:15 AM
  4. DirectX app won't compile on release mode
    By confuted in forum Game Programming
    Replies: 3
    Last Post: 08-02-2003, 11:23 AM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 09:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21