[Bug 38300] New: using winegcc with stdin passes arguments in the wrong position to gcc

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Mar 27 17:26:52 CDT 2015


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 at winehq.org
          Reporter: leonbogaert+winehq at 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.


More information about the wine-bugs mailing list