visual studio c linker wrap option?

匿名 (未验证) 提交于 2019-12-03 08:57:35

问题:

From this article Unit testing with mock objects in C

This is done by using the --wrap linker option which takes the name of the wrapped function as an argument. If the test was compiled using gcc, the invocation might look like:

$ gcc -g -Wl,--wrap=chef_cook waiter_test.c chef.c 

How can I do this when compiling a c project in visual studio?

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!