Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT Compiler errors using NMAKE + _CRT_SECUR E_NO_WARNINGS

QT Compiler errors using NMAKE + _CRT_SECUR E_NO_WARNINGS

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 1 Posters 3.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bu7ch3r
    wrote on 30 Nov 2011, 10:32 last edited by
    #1

    Where do I input this define: _CRT_SECURE_NO_WARNINGS?

    I am getting errors while building qt. My config flags are:
    configure -release -nomake examples -nomake demos -no-exceptions -no-stl -no-rtti -no-qt3support -no-scripttools -no-openssl -no-opengl -no-webkit -no-phonon -no-style-motif -no-style-cde -no-style-cleanlooks -no-style-plastique -plugin-sql-mysql -I C:\mysql\include -L C:\mysql\lib -l libmysql -nomake tests

    Error is:

    .\tokenizer.cpp(480) : warning C4996: 'strcpy': This function or variable may be
    unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECUR
    E_NO_WARNINGS. See online help for details.
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(7
    4) : see declaration of 'strcpy'
    .\tokenizer.cpp(568) : warning C4996: 'strcpy': This function or variable may be
    unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECUR
    E_NO_WARNINGS. See online help for details.
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(7
    4) : see declaration of 'strcpy'
    .\tokenizer.cpp(569) : warning C4996: 'strcpy': This function or variable may be
    unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECUR
    E_NO_WARNINGS. See online help for details.
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(7
    4) : see declaration of 'strcpy'
    yyindent.cpp
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0
    VC\BIN\cl.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0
    VC\BIN\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.

    for(int i = 200; i > 0;)
    try
    {
    //do something
    }
    catch(...)
    {
    i--;//try again
    }

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bu7ch3r
      wrote on 30 Nov 2011, 10:37 last edited by
      #2

      I'll try building using O1 instead of O2 for release optimization. Hope this will work.

      for(int i = 200; i > 0;)
      try
      {
      //do something
      }
      catch(...)
      {
      i--;//try again
      }

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bu7ch3r
        wrote on 30 Nov 2011, 10:45 last edited by
        #3

        Ok now I get real errors about
        'isalpha'
        'isalnum' etc identifier not found???

        for(int i = 200; i > 0;)
        try
        {
        //do something
        }
        catch(...)
        {
        i--;//try again
        }

        1 Reply Last reply
        0

        1/3

        30 Nov 2011, 10:32

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved