Submit | Open tickets | Closed tickets

[ Ticket #74 ] Alpha port: f2c.h line 253 "#undef unix" predefined
Date:
11/29/01 12:59
Submitted by:
robertthebob
Assigned to:
unset
Category:
Compilation/Installation
Priority:
5
Ticket group:
Need to Fix
Resolution:
Unset
Summary:
Alpha port: f2c.h line 253 "#undef unix" predefined
Original submission:
Porting to Compaq cxx on Linux Alpha...

make[1]: Entering directory `/md1/usr/local/src/ghemical-0.81/src/common'
/usr/bin/cxx -DPRIMARY_PATH="/usr/local/share/ghemical/" -DFORMAT_PATH="/usr/local/share/ghemical/0.81" -c -g -I../../src/graphics -I../../src/common -I../../oelib -I/usr/local/src/ghemical-0.81/src ./qm1e_mopac.cpp
cxx: Error: /usr/include/f2c.h, line 253: #undef may not be used on this
predefined namemake[1]: Entering directory `/md1/usr/local/src/ghemical-0.81/src/common'
/usr/bin/cxx -DPRIMARY_PATH="/usr/local/share/ghemical/" -DFORMAT_PATH="/usr/local/share/ghemical/0.81" -c -g -I../../src/graphics -I../../src/common -I../../oelib -I/usr/local/src/ghemical-0.81/src ./qm1e_mopac.cpp
cxx: Error: /usr/include/f2c.h, line 253: #undef may not be used on this
predefined name
#undef unix
-------^
cxx: Info: 1 error detected in the compilation of "./qm1e_mopac.cpp".
make[1]: *** [qm1e_mopac.o] Error 1
_________________________________________________
My ugly quick fix:
copy /usr/include/f2c.h to src/common and comment "#undef unix" line.
#undef unix
-------^
cxx: Info: 1 error detected in the compilation of "./qm1e_mopac.cpp".
make[1]: *** [qm1e_mopac.o] Error 1

copy /usr/include/f2c.h to src/common and comment "#undef unix" line.
Please log in to add comments and receive followups via email.
No followups have been posted
No results for "Dependent on ticket"
No results for "Dependent on Task"
No other tickets are dependent on this ticket
No changes have been made to this ticket

© 1998-2025 Scilico, LLC. All rights reserved.