简体   繁体   中英

C++ compiling error expected identifier before numeric constant

I have the following declaration in a header file

extern int myfunction  (DEBUG *debug, DOMAIN *dom, int i1, int i2, int j1, int j2);

When Compiling I get the following error.

expected identifier before numeric constant
expected ',' or '...' before numeric constant

please help.

DEBUG is a commonly set #define-d value; it's probably getting replaced with 1 (or less likely, 0 ) by the preprocessor.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM