Results 1 to 3 of 3

Thread: 1>e:\program files\microsoft visual studio 8\vc\include\memory.h(25) : error C2144: s

  1. #1
    Join Date
    Apr 2007
    Posts
    44
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default 1>e:\program files\microsoft visual studio 8\vc\include\memory.h(25) : error C2144: s

    I just test compile simple code this

    #include "stdafx.h"
    #include <memory.h>

    int _tmain(int argc, _TCHAR* argv[])
    {
    return 0;
    }

    Got this error

    1>e:\program files\microsoft visual studio 8\vc\include\memory.h(25) : error C2144: syntax error : 'int' should be preceded by ';'
    1>e:\program files\microsoft visual studio 8\vc\include\memory.h(25) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

    Same error when compiling QT 4.3.1

    Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
    Copyright (C) Microsoft Corporation. All rights reserved.

    cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189
    -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_EDITION=QT_EDITION_DESKTOP -DMNG_
    BUILD_SO -DMNG_NO_INCLUDE_JNG -DQT_DLL -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -D
    QT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtCore"
    -I"..\..\..\..\include\QtGui" -I"..\..\..\..\include\QtGui" -I"..\..\..\..\inclu
    de" -I"..\..\..\3rdparty\libmng" -I"..\..\..\3rdparty\zlib" -I"..\..\..\..\inclu
    de\ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"..\..\..\..\mkspecs\win32-msvc200
    5" -Fotmp\obj\debug_shared\ @E:\DOCUME~1\x88\LOCALS~1\Temp\nm27B.tmp
    qmnghandler.cpp
    E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\memory.h(25) : error C2144
    : syntax error : 'int' should be preceded by ';'
    E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\memory.h(25) : error C4430
    : missing type specifier - int assumed. Note: C++ does not support default-int
    NMAKE : fatal error U1077: '"E:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
    l.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"E:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
    make.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    ,hope someone can point me,how to solve it.
    Urgently help is preferable ,thank.

  2. #2
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: 1>e:\program files\microsoft visual studio 8\vc\include\memory.h(25) : error C214

    Are you using the express version of Visual Studio 2005?
    If so, have you installed the Platform SDK?
    Otherwise, could you show us line 25 (and the vicinity) of memory.h.

  3. #3
    Join Date
    Apr 2007
    Posts
    44
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: 1>e:\program files\microsoft visual studio 8\vc\include\memory.h(25) : error C214

    Thank spud for your interest;

    Here at line 25 of memory.h

    Qt Code:
    1. #ifdef __cplusplus
    2. extern "C" { //line 25
    3. #endif
    To copy to clipboard, switch view to plain text mode 

    I'm using vs2005 pro last patch
    for previous qt 4.2.2 version ,i compile just fine.

    but anyway the problem is gone ,i remove all code of memory.h left it as empty file,then compile completely now .


Similar Threads

  1. problems installing open src Qt 4.3.2 on MSVC2005
    By wiseguy in forum Installation and Deployment
    Replies: 10
    Last Post: 17th November 2007, 13:35
  2. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 09:17
  3. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 14:15
  4. Compiling?
    By Afflicted.d2 in forum Newbie
    Replies: 7
    Last Post: 16th October 2006, 20:32
  5. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 22:41

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.