Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to execute linux binary from MSYS
    primarykey
    data
    text
    <p>I wanted to try a program distributed in source for *nux on Windows. It's simple program with couple of C source files and headers</p> <ol> <li><p>I have Mingw/Msys and first I tried to compile it there, by running <code>make</code>, but unfortunatelly I get obscure error <code>(.text+0x175): undefined reference to 'strsep'</code> which maight indicate a problem with autotools or similar, according Google search, but that's all about it I could get</p></li> <li><p>As I mentioned that it is a simple program, I also tried to compile it with VS2008, until I figured it uses unix header file for parsing command line arguments, so nothing I can do there too</p></li> <li><p>I launched my Ubuntu laptop and compiled the program in second, and tested it all fine, then I copy binary in my Windows Msys folder. No luck again as file can't be execeted (under Msys prompt of course) - it doesn't have execute flag and <code>chmod</code> on Msys has a "feature" that makes <code>chmod +x</code> unavailable</p></li> </ol> <hr> <p><strong>Update:</strong></p> <p>This is the error I get from msys prompt while trying to compile:</p> <pre><code>f77_diagram.c: In function 'handle_goto': f77_diagram.c:57:4: warning: implicit declaration of function 'strsep' [-Wimplicit-function-declaration] [...] gcc -o f77_diagram block.o do_loop.o f77_diagram.o if.o label.o \ links.o parse_fortran.o f77_diagram.o:f77_diagram.c:(.text+0x175): undefined reference to `strsep' collect2: ld returned 1 exit status </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload