[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chef_wrap run issue, VS2010


Hi Andreas;
Yes, I finally figured that out once I studied cmocka further; I didn't
understand what --wrap was doing at first.  It appears that VS doesn't
support that operation, at least the way that your CMake build script tried
to do it (with '/Wl,--wrap=chef_cook', which simply doesn't exist).

I tried building with MinGW (A Gnu port to Windows), and this all works
fine, and furthermore, I understand it!  I'll have to see if the
engineering team is interested in dealing with yet another toolchain...

I would suggest that you simply remove the CMake scripts, which are
building a .sln project for Visual Studio; since the entire concept cannot
work, it is sort of mis-leading...
Dan

On Tue, Feb 23, 2016 at 11:22 PM, Andreas Schneider <asn@xxxxxxxxxxxxxx>
wrote:

> On Tuesday 23 February 2016 13:40:48 Daniel Miller wrote:
> > I'm new to cmocka, and am trying to run the chef_wrap example.
> > We use Visual Studio 2010 here.
> > I used CMake to prepare the project, then (after several difficulties)
> got
> > it to build, however I cannot get it to run successfully.
>
> Hi Daniel,
>
> the chef_wrap example requires wrap support of the linker. This is only
> available with GNU ld afaik.
>
> Read "Using CMocka with ld wrapper support" at
> https://lwn.net/Articles/558106/
>
> I don't know if Visual Studio provides something like that ...
>
> --
> Andreas Schneider                   GPG-ID: CC014E3D
> www.cryptomilk.org                asn@xxxxxxxxxxxxxx
>

Follow-Ups:
Re: chef_wrap run issue, VS2010Lukas Slebodnik <lslebodn@xxxxxxxxxx>
References:
chef_wrap run issue, VS2010Daniel Miller <dmiller@xxxxxxxxxxxxxxxx>
Re: chef_wrap run issue, VS2010Andreas Schneider <asn@xxxxxxxxxxxxxx>