By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,549 Members | 1,717 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,549 IT Pros & Developers. It's quick & easy.

Compilation problem

P: n/a
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.
Jun 14 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
> 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


What version of cl.exe are you using?
It almost seems as if you are invoking not the Vc2005 compiler, but an older
one (cl.exe of VC2003 perhaps?).
remove /nologo from your invocation of the compiler so that you can see
which version is used.

--

Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"

Jun 14 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.