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

error "syntax error before numeric constant"

P: 365
I am getting this error for line 108, I kept C code also below, any idea?.
main.c:108: underscore in number
main.c:108: syntax error before numeric constant

104: #define EXPAND_CONCAT(name1,name2) name1 ## name2
105: #define CONCAT(name1,name2) EXPAND_CONCAT(name1,name2)
106: #define RT_MODEL CONCAT(MODEL,_rtModel)

108: extern RT_MODEL *MODEL(void);
Dec 1 '09 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 5K+
P: 8,916
What is MODEL defined to?

From what you have posted line 108 expands to

extern MODEL_rtModel *MODEL(void);

unless MODEL is defined to something. From the error message it looks like MODEL is defined to some number.
Dec 1 '09 #2

P: 365
appreciated. I defined MODEL (actually it was defined, but word split into two with space), this is generated code, now it compiles. thanks.
Dec 1 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.