vector.com|Contact
Search tips

apple banana
Find rows that contain at least one of the two words.

+apple +juice
Find rows that contain both words.

+apple macintosh
Find rows that contain the word 'apple', but rank rows higher if they also contain 'macintosh'.

+apple -macintosh
Find rows that contain the word 'apple' but not 'macintosh'.

+apple ~macintosh
Find rows that contain the word 'apple', but if the row also contains the word 'macintosh', rate it lower than if row does not. This is "softer" than a search for '+apple -macintosh', for which the presence of 'macintosh' causes the row not to be returned at all.

+apple +(>turnover >strudel)
Find rows that contain the words 'apple' and 'turnover', or 'apple' and 'strudel' (in any order), but rank 'apple turnover' higher than 'apple strudel'.

apple*
Find rows that contain words such as 'apple', 'apples', 'applesauce', or 'applet'.

"some words"
Find rows that contain the exact phrase 'some words' (for example, rows that contain 'some words of wisdom' but not "some noise words").

By continuing to use this site you agree to the use of cookies. For more information and to find out how to change this click here. Accept Cookies
Please enable cookies in your browser for this website.
Search:
Advanced search

VectorCAST Stub Functions Without a Prototype

Last updated: 2019-11-11
Question:
Can VectorCAST stub functions without a prototype? 
Answer:

By default, VectorCAST will not stub functions that lack a valid prototype. If a function without a prototype is used but not defined, this will result in a link error when building the environment. The undefined_entities.log will show cannot stub this function without a prototype as the reason a stub was not created. To allow a stub to be created, you can add a prototype for the function to unit appendix user code. To do this, follow these steps:
 

  • Update the environment (Environment | Update Environment...).
  • In the update environment wizard, go to step 7, User Code (optional).
  • Expand the section for Unit Appendix User Code.



 

  • Double-click in the value column for the unit that uses the un-prototyped function which you want stubbed.
  • Insert a valid prototype for the function.
     

  • Click Update to rebuild the environment
     

The resulting environment will be built with a stubbed version of the function.

 
Article Options
2019-11-11
Views: 11