Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > bad macro argument list?

bad macro argument list?
Thread Tools
tie
Professional Poster
Join Date: Feb 2001
Status: Offline
Reply With Quote
Apr 8, 2001, 11:57 PM
 
I am trying to compile the freeciv server for OS X. I had one problem where I had to change some memcpy calls but that was easy to fix. Now I'm stumped.

The error is

common/city.c:97: bad macro argument list
common/city.c:97: bad macro argument list
common/city.c:97: bad macro argument list
common/city.c:97: bad macro argument list
common/city.c:97: bad macro argument list
common/city.c:97: bad macro argument list
common/city.c:97: bad macro argument list
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode

and then the make dies. I've edited common/city.c and line 97 is somewhere in the middle of an array of strings. But the weird thing is, no matter what I do, it is always line 97 where there is an error. For example, I deleted about 20 lines of comments from the top of the file, saved and compiled cc -E common/city.c, and the exact same error message pops up.

Does anyone know enough about how C works to tell me what's happening? I really have edited the file I am compiling -- I've checked about 50 times to make sure they're the same file. I don't know why it is talking about a macro argument list. There aren't any macro in the .c file. There are several in the .h file but there is nothing obviously wrong with them.
The 4 o'clock train will be a bus.
It will depart at 20 minutes to 5.
     
Senior User
Join Date: Sep 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Apr 9, 2001, 07:26 AM
 
add the '--traditional-cpp' option to the compile command.
Apple's new, improved cpp has trouble w/ lots of things.
     
tie  (op)
Professional Poster
Join Date: Feb 2001
Status: Offline
Reply With Quote
Apr 9, 2001, 11:12 AM
 
Thanks! That was the answer.
The 4 o'clock train will be a bus.
It will depart at 20 minutes to 5.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:00 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2