https://bugs.winehq.org/show_bug.cgi?id=38300 Bug ID: 38300 Summary: using winegcc with stdin passes arguments in the wrong position to gcc Product: Wine Version: 1.7.38 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winelib Assignee: wine-bugs(a)winehq.org Reporter: leonbogaert+winehq(a)gmail.com Distribution: --- Created attachment 51131 --> https://bugs.winehq.org/attachment.cgi?id=51131 output with -v flag When using winegcc with stdin it throws an error: $ cat test.c | winegcc -xc -c gcc: warning: ‘-x c’ after last input file has no effect gcc: fatal error: no input files compilation terminated. winegcc: gcc failed When compiling the file as an argument it works. I'm wanting to use stdin because that's what cgo (https://golang.org/cmd/cgo/) uses so I can integrate winelib with my golang program. The test.c is: #include <stdio.h> int main() { printf("Hello World!\n"); return 0; } -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.