+1
0
-1

Parser error of VectorCAST "cannot be used to initialize an entity of type"

Hi

I am build a unit testing environment for C/C++ with VectorCAST.
I met a problem So, I would like to ask about it.

In the Preprocessor, compiler, It is OK. but In the parser...

Posting in: 

5 Answers:

+1
0
-1

Hello,

I've tried compiling that code assuming the declarations are global and not function local.

I cannot get that to compile with g++ with c++14 enabled. How do you know it...

+1
0
-1

Hi Brian

This is local variable. and I compiled this line wth -fpermissive flag of g++ compiler.
So, I hope that that there is the similar option of "-fpermissive" in the...

+1
0
-1

Follow up note:

I suspect your source unit is .c not .cpp. The parser flags you have supplied are for .cpp files.

You need to look into the mixed c/c++ tab for the parser flags for C...

+1
0
-1

yes, You're right. The filename extention is c. but I tried g++ because I met some problems with gcc. with g++, the preblems are solved when I try with g++.
I will look into the mixed c...

+1
0
-1

Hi,

The EDG parser does not support permissive. I would suggest use of a cast. If you are concerned about not changing the source, a post-preprocess script can be used to insert the cast...