Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: macro names must be identifiers <command line>



Permlink Replies: 3 - Last Post: Dec 29, 2017 3:17 AM Last Post By: Tom Roberts
Tom Roberts

Posts: 102
Registered: 6/21/05
macro names must be identifiers <command line>
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 29, 2017 1:03 AM
In Project | Options | C++ (Shared Options) | Conditional defines I've entered the following

SQLITE_EXTRA_INIT=core_init;-DSQLITE_ENABLE_MEMSYS5

but when compiling I get the following error

"macro names must be identifiers <command line>".

If I remove the minus sign before DSQLITE... it compiles OK but I think sqlite requires the minus sign.

Could anyone clarify for me.
Mark Richards

Posts: 42
Registered: 12/8/99
Re: macro names must be identifiers <command line>
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 29, 2017 2:04 AM   in response to: Tom Roberts in response to: Tom Roberts
Tom Roberts wrote:
In Project | Options | C++ (Shared Options) | Conditional defines I've entered the following

SQLITE_EXTRA_INIT=core_init;-DSQLITE_ENABLE_MEMSYS5

but when compiling I get the following error

"macro names must be identifiers <command line>".

If I remove the minus sign before DSQLITE... it compiles OK but I think sqlite requires the minus sign.

Could anyone clarify for me.

Not sure what you are trying to do, but doesn't using a semi-colon ; act as a line terminator in C++ ?
SQLITE_EXTRA_INIT=core_init;-DSQLITE_ENABLE_MEMSYS5

Sorry, didn't see that you were entering it in the conditional defines, not in your c++ code
Edited by: Mark Richards on Dec 29, 2017 2:04 AM

Edited by: Mark Richards on Dec 29, 2017 2:06 AM
Antonio Estevez

Posts: 665
Registered: 4/12/00
Re: macro names must be identifiers <command line>
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 29, 2017 2:25 AM   in response to: Tom Roberts in response to: Tom Roberts
El 29/12/2017 a las 10:03, Tom Roberts escribió:
In Project | Options | C++ (Shared Options) | Conditional defines I've entered the following

SQLITE_EXTRA_INIT=core_init;-DSQLITE_ENABLE_MEMSYS5

but when compiling I get the following error

"macro names must be identifiers <command line>".

If I remove the minus sign before DSQLITE... it compiles OK but I think sqlite requires the minus sign.

Could anyone clarify for me.

You must remove the minus sign and the "D" command line parameter:

SQLITE_EXTRA_INIT=core_init;SQLITE_ENABLE_MEMSYS5

Tom Roberts

Posts: 102
Registered: 6/21/05
Re: macro names must be identifiers <command line>
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 29, 2017 3:17 AM   in response to: Antonio Estevez in response to: Antonio Estevez
Antonio Estevez wrote:
El 29/12/2017 a las 10:03, Tom Roberts escribió:
In Project | Options | C++ (Shared Options) | Conditional defines I've entered the following

SQLITE_EXTRA_INIT=core_init;-DSQLITE_ENABLE_MEMSYS5

but when compiling I get the following error

"macro names must be identifiers <command line>".

If I remove the minus sign before DSQLITE... it compiles OK but I think sqlite requires the minus sign.

Could anyone clarify for me.

You must remove the minus sign and the "D" command line parameter:

SQLITE_EXTRA_INIT=core_init;SQLITE_ENABLE_MEMSYS5


Thanks Antonio. I'm getting a feeling of deja vu here. I think I asked the same question for the SQLITE_EXTRA_INIT part. Doh.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02