IET
Decrease font size
Increase font size
Topic Title: Error message while compiling a process model in Opent
Topic Summary: when i compile any model process in opnet 11.5 this error occur it is indepent of model.
Created On: 10 September 2010 11:38 AM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 10 September 2010 11:38 AM
User is offline View Users Profile Print this message



ehsan88

Posts: 1
Joined: 10 September 2010

i have installed OPNET 11.5 which uses Visual studio. net 2003 as compiler. But when i compile a process model it gives the following error.


acb_fifo.pr.tmp.c
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(225) : error C2061: syntax error : identifier 'ULONG_PTR'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(226) : error C2061: syntax error : identifier 'InternalHigh'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(226) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(233) : error C2061: syntax error : identifier 'PVOID'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(234) : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(236) : error C2061: syntax error : identifier 'hEvent'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(236) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(237) : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(246) : error C2061: syntax error : identifier 'HANDLE'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(247) : error C2061: syntax error : identifier 'hThread'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(247) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(250) : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(294) : error C2061: syntax error : identifier 'CRITICAL_SECTION'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(294) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(295) : error C2061: syntax error : identifier 'PCRITICAL_SECTION'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(295) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(296) : error C2061: syntax error : identifier 'LPCRITICAL_SECTION'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(296) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(298) : error C2061: syntax error : identifier 'CRITICAL_SECTION_DEBUG'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(298) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(299) : error C2061: syntax error : identifier 'PCRITICAL_SECTION_DEBUG'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(299) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(300) : error C2061: syntax error : identifier 'LPCRITICAL_SECTION_DEBUG'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(300) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(303) : error C2061: syntax error : identifier 'LPLDT_ENTRY'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(303) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(430) : error C2061: syntax error : identifier 'WCHAR'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(431) : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(516) : error C2061: syntax error : identifier 'WCHAR'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(517) : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(530) : error C2061: syntax error : identifier 'DWORD_PTR'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(536) : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(576) : error C2061: syntax error : identifier 'SIZE_T'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(577) : error C2061: syntax error : identifier 'dwAvailPhys'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(577) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(578) : error C2061: syntax error : identifier 'dwTotalPageFile'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(578) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(579) : error C2061: syntax error : identifier 'dwAvailPageFile'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(579) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(580) : error C2061: syntax error : identifier 'dwTotalVirtual'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(580) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(581) : error C2061: syntax error : identifier 'dwAvailVirtual'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(581) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(582) : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(672) : error C2061: syntax error : identifier 'EXCEPTION_RECORD'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(674) : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(677) : error C2061: syntax error : identifier 'HANDLE'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(680) : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(683) : error C2061: syntax error : identifier 'HANDLE'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(684) : error C2061: syntax error : identifier 'hProcess'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(684) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(685) : error C2061: syntax error : identifier 'hThread'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(685) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(693) : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(704) : error C2061: syntax error : identifier 'HANDLE'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(710) : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(717) : error C2061: syntax error : identifier 'LPSTR'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(720) : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(733) : error C2061: syntax error : identifier 'EXCEPTION_DEBUG_INFO'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(734) : error C2061: syntax error : identifier 'CreateThread'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(734) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(735) : error C2061: syntax error : identifier 'CreateProcessInfo'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(735) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(738) : error C2061: syntax error : identifier 'LoadDll'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(738) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(740) : error C2061: syntax error : identifier 'DebugString'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(740) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(742) : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(743) : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(746) : error C2061: syntax error : identifier 'LPCONTEXT'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(746) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(747) : error C2061: syntax error : identifier 'LPEXCEPTION_RECORD'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(747) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(748) : error C2061: syntax error : identifier 'LPEXCEPTION_POINTERS'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(748) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(978) : error C2061: syntax error : identifier 'CHAR'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(979) : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1296) : error C2061: syntax error : identifier 'LONG'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1296) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1299) : error C2143: syntax error : missing ')' before 'volatile'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1299) : error C2143: syntax error : missing '{' before 'volatile'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1300) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1303) : error C2061: syntax error : identifier 'LONG'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1303) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1306) : error C2143: syntax error : missing ')' before 'volatile'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1306) : error C2143: syntax error : missing '{' before 'volatile'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1307) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1310) : error C2061: syntax error : identifier 'LONG'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1310) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1313) : error C2143: syntax error : missing ')' before 'volatile'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1313) : error C2143: syntax error : missing '{' before 'volatile'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1314) : error C2146: syntax error : missing ';' before identifier 'Value'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1314) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1314) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1314) : error C2143: syntax error : missing ';' before 'identifier'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1315) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1321) : error C2061: syntax error : identifier 'LONG'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1321) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1324) : error C2143: syntax error : missing ')' before 'volatile'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1324) : error C2143: syntax error : missing '{' before 'volatile'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1325) : error C2146: syntax error : missing ';' before identifier 'Value'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(1325) : fatal error C1003: error count exceeds 100; stopping compilation


what is the problem? is the problem with OPNET or visual Studio. Please help me
 20 September 2010 04:55 AM
User is offline View Users Profile Print this message



ehsan88

Posts: 1
Joined: 10 September 2010

please help me i am waiting for you replies.. i am new in this forum.
 20 September 2010 09:26 AM
User is offline View Users Profile Print this message



ectophile

Posts: 539
Joined: 17 September 2001

It looks like you are missing one or more header files from your C++ code.
Windows.h would be a good place to start, but there may be more.

-------------------------
S P Barker BSc PhD MIET
Statistics

See Also:



FuseTalk Standard Edition v3.2 - © 1999-2014 FuseTalk Inc. All rights reserved.