+1
0
-1

how to resolve the error if ## is there in code

Hello,

While i was building environment, in one of the .h file is having code like

#define REGISTER_BIT(rg,bt) (volatile _io_reg*)&rg)->bit##bt

## means concatenating...

Posting in: 

5 Answers:

+1
0
-1

Hi,

Does the code compiles successfully outside of VectorCAST? Are you using the same compiler settings in VectorCAST which is used while developing the code?

Please share the same...

+1
0
-1

Hello,

Your macro as written is incorrect (parenthesis imbalance).

I strongly suspect the code proper uses a different compiler, perhaps Visual Studio.

I've tried similar here...

+1
0
-1

Hello,

Your macro as written is incorrect (parenthesis imbalance).

I strongly suspect the code proper uses a different compiler, perhaps Visual Studio.

I've tried similar here...

+1
0
-1

Sorry i missed closed parenthesis.
I tried using the above options but iam geting other errors like complier is not able to find some library .h files.