A
Arsalan Ahmad
Hi all,
I am trying to compile some source files using makefile. While compiling I
am getting errors as shown below. Any idea how can I solve this problem. I
believe I need to add some preprocessor directives but I dont know which
one.
Thanks,
Arsalan
Errors Below:
C:\OMNeT++\mobility-fw1_0a6>nmake /f makefile.vc
Microsoft (R) Program Maintenance Utility Version 7.00.8882
Copyright (C) Microsoft Corp 1988-2000. All rights reserved.
cd core && echo [Entering core] && nmake /nologo /f Makefile.vc &&
echo
[Leaving core]
[Entering core]
[opp_msgc in basicMessages]
[opp_msgc in basicModules]
[opp_msgc in basicNetworks]
[opp_msgc in basic]
[opp_msgc in p2p]
[opp_msgc in blackboard]
[opp_msgc in channelControl]
[opp_msgc in utils]
cl.exe /nologo -c /EHsc /GR /FD /Zm250 /O2 /DNDEBUG
/D_CRT_SECURE_NO_DEP
RECATE -Iblackboard -IC:/OMNeT++/include /Tp BasicModule.cc
BasicModule.cc
C:\Program Files\Microsoft Visual Studio 8\VC\include\crtdefs.h(506) : error
C24
85: 'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(454) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(455) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(456) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(457) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(458) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(459) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(460) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(461) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(269) : error
C2265
: '<Unknown>' : reference to a zero-sized array is illegal
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(270) : warning
C40
03: not enough actual parameters for macro
'__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_
0_0_EX'
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(270) : error
C2144
: syntax error : missing ';' before type 'char'
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(270) : error
C2501
: 'gets' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(270) : fatal
error
C1004: unexpected end of file found
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
C:\OMNeT++\mobility-fw1_0a6>"C:\Program Files\Microsoft Visual Studio
8\VC\bin\n
make" /f makefile.vc
Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
cl.exe /nologo -c /EHsc /GR /FD /Zm250 /O2 /DNDEBUG /D_CRT_SECURE_NO_DEP
RECATE -Iblackboard -IC:/OMNeT++/include /Tp BasicModule.cc
BasicModule.cc
C:\Program Files\Microsoft Visual Studio 8\VC\include\crtdefs.h(506) : error
C24
85: 'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(454) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(455) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(456) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(457) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(458) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(459) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(460) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(461) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(269) : error
C2265
: '<Unknown>' : reference to a zero-sized array is illegal
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(270) : warning
C40
03: not enough actual parameters for macro
'__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_
0_0_EX'
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(270) : error
C2144
: syntax error : missing ';' before type 'char'
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(270) : error
C2501
: 'gets' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(270) : fatal
error
C1004: unexpected end of file found
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
I am trying to compile some source files using makefile. While compiling I
am getting errors as shown below. Any idea how can I solve this problem. I
believe I need to add some preprocessor directives but I dont know which
one.
Thanks,
Arsalan
Errors Below:
C:\OMNeT++\mobility-fw1_0a6>nmake /f makefile.vc
Microsoft (R) Program Maintenance Utility Version 7.00.8882
Copyright (C) Microsoft Corp 1988-2000. All rights reserved.
cd core && echo [Entering core] && nmake /nologo /f Makefile.vc &&
echo
[Leaving core]
[Entering core]
[opp_msgc in basicMessages]
[opp_msgc in basicModules]
[opp_msgc in basicNetworks]
[opp_msgc in basic]
[opp_msgc in p2p]
[opp_msgc in blackboard]
[opp_msgc in channelControl]
[opp_msgc in utils]
cl.exe /nologo -c /EHsc /GR /FD /Zm250 /O2 /DNDEBUG
/D_CRT_SECURE_NO_DEP
RECATE -Iblackboard -IC:/OMNeT++/include /Tp BasicModule.cc
BasicModule.cc
C:\Program Files\Microsoft Visual Studio 8\VC\include\crtdefs.h(506) : error
C24
85: 'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(454) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(455) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(456) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(457) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(458) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(459) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(460) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(461) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(269) : error
C2265
: '<Unknown>' : reference to a zero-sized array is illegal
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(270) : warning
C40
03: not enough actual parameters for macro
'__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_
0_0_EX'
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(270) : error
C2144
: syntax error : missing ';' before type 'char'
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(270) : error
C2501
: 'gets' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(270) : fatal
error
C1004: unexpected end of file found
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
C:\OMNeT++\mobility-fw1_0a6>"C:\Program Files\Microsoft Visual Studio
8\VC\bin\n
make" /f makefile.vc
Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
cl.exe /nologo -c /EHsc /GR /FD /Zm250 /O2 /DNDEBUG /D_CRT_SECURE_NO_DEP
RECATE -Iblackboard -IC:/OMNeT++/include /Tp BasicModule.cc
BasicModule.cc
C:\Program Files\Microsoft Visual Studio 8\VC\include\crtdefs.h(506) : error
C24
85: 'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(454) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(455) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(456) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(457) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(458) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(459) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(460) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h(461) : error
C2485:
'deprecated' : unrecognized extended attribute
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(269) : error
C2265
: '<Unknown>' : reference to a zero-sized array is illegal
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(270) : warning
C40
03: not enough actual parameters for macro
'__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_
0_0_EX'
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(270) : error
C2144
: syntax error : missing ';' before type 'char'
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(270) : error
C2501
: 'gets' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(270) : fatal
error
C1004: unexpected end of file found
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.