On 11.3.2013 21:21, Erik de Castro Lopo wrote:
Error 9 error LNK2001: unresolved external symbol
_safe_malloc_mul_2op_
G:\Programming\flac-1.3.0pre2\src\flac\utf8_static.lib(utf8.obj) flac
Error 10 error LNK1120: 9 unresolved externals
G:\Programming\flac-1.3.0pre2\objs\release\bin\flac.exe flac
Error 9 is related to the location of _safe_malloc_mul_2op_. It's
easiest to fix by having the code in utf8.c.
But that function is defined in src/share/grabbag/alloc.c and should
be getting linked into flac.exe. It doesn't need to be redefined in
utf8.c. Specifically, I think alloc.c should be added as one of the
build files in
src/share/grabbag/grabbag_static.vcproj
src/share/grabbag/grabbag_dynamic.vcproj
Please try this and if that fixes it, please send a patch containing
only that change.
I thought Ben Allison would have made a patch. Here's a patch for this.
I suppose we were all blind at first for the cause.
diff -rupN a/src/share/grabbag/grabbag_static.vcproj
b/src/share/grabbag/grabbag_static.vcproj
--- a/src/share/grabbag/grabbag_static.vcproj Wed Jan 2 13:49:55 2013
+++ b/src/share/grabbag/grabbag_static.vcproj Tue Mar 12 09:46:01 2013
@@ -163,6 +163,10 @@
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
+ RelativePath=".\alloc.c"
+ >
+ </File>
+ <File
RelativePath=".\cuesheet.c"
>
</File>
_______________________________________________
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev