The question is about linking with msvc an object file compiled with mingw.First of all, I know that this IS possible,surely.
The question raised when I compiled Allegro library for Windows; it required msvc and gcc. Then I noticed that there were assembly source files that use Unix format(and msvc use Intel syntax, AFAIK). I looked the makefile.vc and I discovered that gcc is used just for compiling assembly files, but ms linker is used for linking together all objects.
I did a try.
I created 2 file one in assembly(with a dummy function), one in c( using assembly function).It works if i build the exe only with mingw.
Then i compiled assembly with mingw and c file with msvc and i link all with ms linker but i have an unresolved reference error.
ok, they are different object file formats it surely possible combining them together. (check Allegro lib).
Thanks for future help