c - Mingw32 Assembler error at @function -


i porting project windows using mingw32 , project depends on library called libfec. libfec has lot of assembly code optimize inner workings. in linux (with gcc 5.4) library compiles fine. today tried compile on windows using mingw32 (with gcc 5.4) , got error:

as   -o mmxbfly27.o mmxbfly27.s mmxbfly27.s: assembler messages: mmxbfly27.s:10: warning: .type pseudo-op used outside of .def/.endef ignored. mmxbfly27.s:10: error: junk @ end of line, first unrecognized character `u' make: *** [mmxbfly27.o] error 1 

the warning .type happens in linux well, error doesn't. checked binutils , they're different (on linux 2.26 , in mingw 2.25) code of libfec bit old (few years) , compilable binutils 2.0.

i'm not sure why can't compile on windows. full code here:

https://github.com/quiet/libfec/blob/master/mmxbfly27.s

i asked friend has experience compilers, , couldn't find problem in code (and compile fine in linux).

ok solution simple: comment .type directive. pecoff doesn't need that. i'm able compile , run fine.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -