Unable to build hxcpp project for win32 - failed with ar

27 views
Skip to first unread message

Nathan Hüsken

unread,
Nov 19, 2015, 11:12:11 AM11/19/15
to HaXe Mailinglist
Hey,

When trying to compile my hxcpp static library project for win32 (using
mingw32) I the error below. It looks like a typo for the parameters for
ar, but I could be wrong.

Any idea?

THanks!
Nathan

ar -cr libFileSystem.a @H:/prompt-filesystem/lib/obj/mingw-stat/all_objs
-lws2_32
ar: invalid option -- w
Usage: ar [emulation options] [-]{dmpqrstx}[abcDfilMNoPsSTuvV]
[member-name] [count] archive-file file...
ar -M [<mri-script]
commands:
d - delete file(s) from the archive
m[ab] - move file(s) in the archive
p - print file(s) found in the archive
q[f] - quick append file(s) to the archive
r[ab][f][u] - replace existing or insert new file(s) into the archive
s - act as ranlib
t - display contents of archive
x[o] - extract file(s) from the archive
command specific modifiers:
[a] - put file(s) after [member-name]
[b] - put file(s) before [member-name] (same as [i])
[D] - use zero for timestamps and uids/gids
[U] - use actual timestamps and uids/gids (default)
[N] - use instance [count] of name
[f] - truncate inserted file names
[P] - use full path names when matching
[o] - preserve original dates
[u] - only replace files that are newer than current archive
contents
generic modifiers:
[c] - do not warn if the library had to be created
[s] - create an archive index (cf. ranlib)
[S] - do not build a symbol table
[T] - make a thin archive
[v] - be verbose
[V] - display the version number
@<file> - read options from <file>
--target=BFDNAME - specify the target object format as BFDNAME
emulation options:
No emulation specific options
ar: supported targets: pe-i386 pei-i386 elf32-i386 elf32-little
elf32-big srec symbolsrec verilog tekhex binary ihex
Error: error running ar -cr libFileSystem.a
@H:/prompt-filesystem/lib/obj/mingw-stat/all_objs -lws2_32
Error: Build failed
mv: cannot stat 'lib/libFileSystem.a': No such file or directory

underscorediscovery

unread,
Nov 23, 2015, 6:02:53 PM11/23/15
to Haxe
For reference this should have been fixed in hxcpp master here https://github.com/HaxeFoundation/hxcpp/commit/dd54095bb0426c1c9cf90c32466be3b939910079
Reply all
Reply to author
Forward
0 new messages