| Issue 140: | OS X: Static lib does not build | |
| 1 person starred this issue and may be notified of changes. | Back to list |
** What steps will reproduce the problem? ** 1. Try to compile a haXe file as a static lib, passing the -D static argument to haxe. ** What is the expected output? What do you see instead? ** It is expected a static library is built, which a 64-bit application can link against. However, the build fails: ar -cr Test-debug.a @all_objs ar: @all_objs: No such file or directory I noticed there is no file called @all_objs, but a file all_objs instead, so I type: ar -cr Test-debug.a all_objs It builds. I type: ranlib Test-debug.a To convert the lib from a Archive format to a Mach-o format. However, I'm unable to link the lib with a c++ object file to create the exec (don't remember the exact message). I tried to create the lib using libtool -static -o Test-debug.a [list of .o files] Now, it can be linked. ** What version of the product are you using? On what operating system? ** 2,08,0 on Mac OS 10.7. ** Please provide any additional information below. **
Feb 8, 2012
Project Member
#1
gameh...@gmail.com
Status:
Fixed
|