[JX] Build Common bị lỗi thế này. Giúp mình với !
Hello & Welcome to our community. Is this your first visit? Đăng Ký
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Kết quả 1 đến 4 của 4
  1. #1
    Thành Viên GameZone
    Ngày tham gia
    Aug 2011
    Bài viết
    269
    Thanks
    27
    Thanked 35 Times in 32 Posts

    Build Common bị lỗi thế này. Giúp mình với !

    Deleting intermediate files and output files for project 'Common - Win32 Release'.
    --------------------Configuration: Common - Win32 Release--------------------
    Compiling...
    stdafx.cpp
    Compiling...
    Buffer.cpp
    Console.cpp
    Event.cpp
    EventSelect.cpp
    Exception.cpp
    IniFile.cpp
    IOBuffer.cpp
    IOCompletionPort.cpp
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.h(36) : error C2061: syntax error : identifier 'ULONG_PTR'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.h(38) : error C2061: syntax error : identifier 'ULONG_PTR'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.h(42) : error C2061: syntax error : identifier 'ULONG_PTR'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.h(46) : error C2061: syntax error : identifier 'ULONG_PTR'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.h(49) : error C2535: 'unsigned long __thiscall OnlineGameLib::Win32::CIOCompletionPort::GetStatus (void)' : member function already defined or declared
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.h(42) : see declaration of 'GetStatus'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(27) : error C2061: syntax error : identifier 'ULONG_PTR'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(31) : error C2065: 'completionKey' : undeclared identifier
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(38) : error C2065: 'ULONG_PTR' : undeclared identifier
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(38) : error C2146: syntax error : missing ')' before identifier 'completionKey'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(38) : error C2182: 'PostStatus' : illegal use of type 'void'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(38) : error C2350: 'CIOCompletionPort:ostStatus' is not a static member
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(40) : error C2059: syntax error : ')'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(41) : error C2143: syntax error : missing ';' before '{'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(41) : error C2447: missing function header (old-style formal list?)
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(51) : error C2065: 'pCompletionKey' : undeclared identifier
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(52) : error C2275: 'PDWORD' : illegal use of this type as an expression
    C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(156) : see declaration of 'PDWORD'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(52) : error C2146: syntax error : missing ')' before identifier 'pdwNumBytes'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(52) : error C2350: 'CIOCompletionPort::GetStatus' is not a static member
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(52) : error C2078: too many initializers
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(52) : error C2275: 'PDWORD' : illegal use of this type as an expression
    C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(156) : see declaration of 'PDWORD'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(53) : error C2059: syntax error : ')'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(54) : error C2143: syntax error : missing ';' before '{'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(54) : error C2447: missing function header (old-style formal list?)
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(68) : error C2275: 'PDWORD' : illegal use of this type as an expression
    C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(156) : see declaration of 'PDWORD'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(68) : error C2146: syntax error : missing ')' before identifier 'pdwNumBytes'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(68) : error C2350: 'CIOCompletionPort::GetStatus' is not a static member
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(68) : error C2078: too many initializers
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(68) : error C2275: 'PDWORD' : illegal use of this type as an expression
    C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\windef.h(156) : see declaration of 'PDWORD'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(70) : error C2059: syntax error : ')'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(71) : error C2143: syntax error : missing ';' before '{'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.cpp(71) : error C2447: missing function header (old-style formal list?)
    KSG_EncodeDecode.cpp
    KSocketClient2.cpp
    Library.cpp
    Macro.cpp
    ManualResetEvent.cpp
    Mutex.cpp
    NodeList.cpp
    Socket.cpp
    SocketAddress.cpp
    SocketClient.cpp
    SocketServer.cpp
    NOTE : --------------------OnlineGameLib [Client] : Announcement--------------------
    NOTE : The lib be used for socket communicate that it is base on
    NOTE : Windows 95 and Windows NT 3.51 and later
    NOTE :
    NOTE : liupeng xishanju.zhuhai.china 2003.1
    NOTE : -----------------------------------------------------------------------------
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.h(36) : error C2061: syntax error : identifier 'ULONG_PTR'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.h(38) : error C2061: syntax error : identifier 'ULONG_PTR'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.h(42) : error C2061: syntax error : identifier 'ULONG_PTR'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.h(46) : error C2061: syntax error : identifier 'ULONG_PTR'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.h(49) : error C2535: 'unsigned long __thiscall OnlineGameLib::Win32::CIOCompletionPort::GetStatus (void)' : member function already defined or declared
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\IOCompletionPort.h(42) : see declaration of 'GetStatus'
    NOTE : --------------------OnlineGame [Server] : Announcement--------------------
    NOTE : Developing a truly scalable Winsock Server using IO Completion Ports(IOCP)
    NOTE : But this module depend on the microsoft platform
    NOTE : Requirements :
    NOTE : * Windows NT/2000/XP: Included in Windows NT 4.0 and later.
    NOTE : * Windows 95/98/Me: Unsupported.
    NOTE :
    NOTE : liupeng xishanju.zhuhai.china 2003.1
    NOTE : -----------------------------------------------------------------------------
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\SocketServer.cpp(348) : error C2065: 'ULONG_PTR' : undeclared identifier
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\SocketServer.cpp(348) : error C2146: syntax error : missing ')' before identifier 'pSocket'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\SocketServer.cpp(348) : error C2059: syntax error : ')'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\SocketServer.cpp(431) : error C2146: syntax error : missing ')' before identifier 'pSocket'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\SocketServer.cpp(431) : error C2059: syntax error : ')'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\SocketServer.cpp(957) : error C2065: 'PDWORD_PTR' : undeclared identifier
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\SocketServer.cpp(957) : error C2297: '&' : illegal, right operand has type 'class OnlineGameLib::Win32::CSocketServer::Socket *'
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\SocketServer.cpp(957) : error C2660: 'GetStatus' : function does not take 3 parameters
    D:\Source\swrod3\SwordOnline\Sources\MultiServer\C ommon\SocketServer.cpp(1011) : error C2660: 'PostStatus' : function does not take 1 parameters
    Thread.cpp
    Generating Code...
    Compiling...
    UsesWinsock.cpp
    Utils.cpp
    Win32Exception.cpp
    Generating Code...
    Error executing cl.exe.

    Common.lib - 45 error(s), 0 warning(s)





    ai biết lỗi gì thì giúp mình. thank
    Khách viếng thăm hãy cùng dammejx xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  2. #2
    Thành Viên Tâm Huyết assaa's Avatar
    Ngày tham gia
    Jul 2009
    Bài viết
    915
    Thanks
    271
    Thanked 416 Times in 236 Posts

    Ðề: Build Common bị lỗi thế này. Giúp mình với !

    Bạn copy cái VC98 của nhoxyeunhac share rồi build lại xem thế nào
    Khách viếng thăm hãy cùng assaa xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  3. #3
    Vi phạm quy định
    Ngày tham gia
    Jun 2011
    Bài viết
    102
    Thanks
    0
    Thanked 156 Times in 30 Posts

    Ðề: Build Common bị lỗi thế này. Giúp mình với !

    typedef DWORD ULONG_PTR;


    thêm cái trên vào đầu file
    Khách viếng thăm hãy cùng LeHuyetVoHon xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  4. #4
    Thành Viên Tâm Huyết kelly's Avatar
    Ngày tham gia
    Jul 2009
    Bài viết
    531
    Thanks
    80
    Thanked 648 Times in 128 Posts

    Ðề: Build Common bị lỗi thế này. Giúp mình với !

    cái này chắc chắn bạn build trên win7

    trước mình thử win7 cũng bị lỗi này chuyển qua xp sp2 thi ok
    Khách viếng thăm hãy cùng kelly xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 

Các Chủ đề tương tự

  1. [JX] Ai hướng dẫn build source với
    Bởi anhbi792 trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 1
    Bài viết cuối: 26-11-12, 10:40 AM
  2. [JX] Ai Build đc vòng sáng giúp mình lỗi này với !
    Bởi kenthp trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 1
    Bài viết cuối: 17-08-12, 11:28 AM
  3. [Thắc Mắc] Fire Windows Shell Common Dll
    Bởi sieunhan01 trong diễn đàn CHUYÊN ĐỀ WEB GAMES
    Trả lời: 0
    Bài viết cuối: 21-06-12, 09:22 AM
  4. [MU] Cần hướng dẫn Cách build dll và .exe
    Bởi sunhide trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 0
    Bài viết cuối: 17-01-12, 11:01 AM
  5. Lỗi Build dll
    Bởi hoangtu_eck94 trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 0
    Bài viết cuối: 30-10-10, 07:00 AM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 05:02 AM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.