Skip to content

Instantly share code, notes, and snippets.

@martell
Created August 11, 2016 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martell/b83375927a0ae6b10c7f41f0f7f859a4 to your computer and use it in GitHub Desktop.
Save martell/b83375927a0ae6b10c7f41f0f7f859a4 to your computer and use it in GitHub Desktop.
../usr/bin/x86_64-w64-mingw32-clang test.c -v
clang version 3.9.0 (trunk 275826) (llvm/trunk 275825)
Target: x86_64--windows-gnu
Thread model: posix
InstalledDir: /Users/martell/llvm/usr/bin
"/Users/martell/llvm/usr/bin/clang-3.9" -cc1 -triple x86_64--windows-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name test.c -mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 264.3.102 -momit-leaf-frame-pointer -v -dwarf-column-info -debugger-tuning=gdb -resource-dir /Users/martell/llvm/usr/bin/../lib/clang/3.9.0 -internal-isystem /Users/martell/llvm/usr/bin/../lib/clang/3.9.0/include -internal-isystem /Users/martell/llvm/usr/x86_64-w64-mingw32/include -internal-isystem /Users/martell/llvm/usr/include -fdebug-compilation-dir /Users/martell/llvm/scripts -ferror-limit 19 -fmessage-length 80 -fno-use-cxa-atexit -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/dm/xx2ssgf541x2f6tg8chl3wdh0000gn/T/test-f66e1e.o -x c test.c
clang -cc1 version 3.9.0 based upon LLVM 3.9.0 default target x86_64-apple-darwin15.5.0
#include "..." search starts here:
#include <...> search starts here:
/Users/martell/llvm/usr/bin/../lib/clang/3.9.0/include
/Users/martell/llvm/usr/x86_64-w64-mingw32/include
/Users/martell/llvm/usr/include
End of search list.
"/Users/martell/llvm/usr/bin/lld" -flavor gnu -m i386pep -Bdynamic -o a.exe /Users/martell/llvm/usr/x86_64-w64-mingw32/lib/crt2.o /Users/martell/llvm/usr/x86_64-w64-mingw32/lib/crtbegin.o -L/Users/martell/llvm/usr/x86_64-w64-mingw32/lib -L/Users/martell/llvm/usr/lib -L/Users/martell/llvm/usr/x86_64-w64-mingw32/sys-root/mingw/lib /var/folders/dm/xx2ssgf541x2f6tg8chl3wdh0000gn/T/test-f66e1e.o -lmingw32 /Users/martell/llvm/usr/bin/../lib/clang/3.9.0/lib/windows/libclang_rt.builtins-x86_64.a -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 /Users/martell/llvm/usr/x86_64-w64-mingw32/lib/crtend.o
/users/martell/llvm/usr/x86_64-w64-mingw32/lib/crt2.o: undefined symbol: _set_invalid_parameter_handler
/users/martell/llvm/usr/x86_64-w64-mingw32/lib/crt2.o: undefined symbol: __imp___initenv
link failed
clang-3.9: error: linker command failed with exit code 1 (use -v to see invocation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment