single obj file, amalgamation

3 views
Skip to first unread message

obje...@you-spam.com

unread,
Apr 10, 2017, 6:29:47 PM4/10/17
to webp-d...@webmproject.org
Hello. Help me build a signle "obj" or "c" file from source code. Similarly, as sqlite3  does - the amalgamation file.
I tried make single "c" 
--
#include dec\alpha_dec.c
#include dec\buffer_dec.c
#include dec\...
...
#include dsp\alpha_processing.c
.. etc.
But when compile (VS2010)  this file, i get this error C2084: function "void YuvToRgbRow..." has implemetation. 

I try to merge "obj" files using the: ld -r -o single.obj enc\tree_enc.obj enc\vp8l_enc.obj ...etc. The file is created, but when linking we get problems.

James Zern

unread,
Apr 12, 2017, 8:11:26 PM4/12/17
to WebP Discussion
Hi,
Building the source as a library should be enough, that's what Makefile.vc produces in the webp tree. Including all the sources into one likely won't work as there may be duplicate local symbols. 
Reply all
Reply to author
Forward
0 new messages