Reputation: 111
I'm trying to compile the chef example from the CMocka project examples - link.
When I'm compiling it without the mocking flags there are no compilation problems. When I'm trying to compile it using the defined flags I get compiling error:
gcc -g -Wl,--wrap=chef_cook cmocka.c waiter_test_wrap.c chef.c
I receive the following error line:
At line:1 char:11
+ gcc -g -Wl,--wrap=chef_cook cmocka.c waiter_test_wrap.c chef.c
+ ~
Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument
I've seen several examples and I don't find any syntax problems. What am I doing wrong? Thank you.
Upvotes: 0
Views: 234