cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
1,155 Views
Registered: ‎12-24-2017

operator && has no left operand,error in Xilinx preprocessors?

Jump to solution

I am mixing a C and C++ project and after dealing with some errors I reached a point where I can't find any error .

I declared in main

#define __cplusplus

and then the errors in the bsp were ingored but those refuse to dissapear

https://image.prntscr.com/image/kG8zxtEaTWmzFmCc7ZkhHg.png

 

I have no errors in my project.I tried to clean the project,delete some files,could some variable change in project settings?

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Contributor
Contributor
1,431 Views
Registered: ‎12-24-2017

Re: operator && has no left operand,error in Xilinx preprocessors?

Jump to solution

The problem was not from using extern C++ or C even if one created more errors.I could import any files in any way in the project the errors would be the same.

 

The solution was to import first a bsp header then use my code,not use my code in which I import a bsp header...

View solution in original post

0 Kudos
4 Replies
Highlighted
Scholar
Scholar
1,128 Views
Registered: ‎03-22-2016

Re: operator && has no left operand,error in Xilinx preprocessors?

Jump to solution

@tester11 you should never define that

It is defined by the compiler

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.
0 Kudos
Highlighted
Contributor
Contributor
1,101 Views
Registered: ‎12-24-2017

Re: operator && has no left operand,error in Xilinx preprocessors?

Jump to solution

Then I get more 'undefined reference to' in bsp

0 Kudos
Highlighted
Scholar
Scholar
1,092 Views
Registered: ‎03-22-2016

Re: operator && has no left operand,error in Xilinx preprocessors?

Jump to solution

@tester11 what are the file extensions? C++ files should be on .cpp and c files on .c

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.
0 Kudos
Highlighted
Contributor
Contributor
1,432 Views
Registered: ‎12-24-2017

Re: operator && has no left operand,error in Xilinx preprocessors?

Jump to solution

The problem was not from using extern C++ or C even if one created more errors.I could import any files in any way in the project the errors would be the same.

 

The solution was to import first a bsp header then use my code,not use my code in which I import a bsp header...

View solution in original post

0 Kudos