Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8076209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:12:56+00:00 2026-06-05T15:12:56+00:00

I wanted to try a program distributed in source for *nux on Windows. It’s

  • 0

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

  1. I have Mingw/Msys and first I tried to compile it there, by running make, but unfortunatelly I get obscure error (.text+0x175): undefined reference to 'strsep' which maight indicate a problem with autotools or similar, according Google search, but that’s all about it I could get

  2. 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

  3. 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 chmod on Msys has a “feature” that makes chmod +x unavailable


Update:

This is the error I get from msys prompt while trying to compile:

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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T15:12:57+00:00Added an answer on June 5, 2026 at 3:12 pm

    That means that the function/variable strsep wasn’t properly initialized. It most likely is a linking error. All it probably means is that you don’t have a dependency installed. You’ll need to post more information about the error.

    By the way, you can’t run linux binaries on windows.

    Judging by your error, it looks like your compiler doesn’t support the strsep function. To deal with this you will probably have to code your own, like this:

    char *strsep(char **from, const char *delim) {
        char *s, *dp, *ret;
    
        if ((s = *from) == NULL)
            return NULL;
    
        ret = s;
        while (*s != '\0') {
            /* loop until the end of s, checking against each delimiting character,
             * if we find a delimiter set **s to '\0' and return our previous token
             * to the user. */
            dp = (char *)delim;
            while (*dp != '\0') {
                if (*s == *dp) {
                    *s = '\0';
                    *from = s + 1;
                    return ret;
                }
                dp++;
            }
            s++;
        }
        /* end of string case */
        *from = NULL;
        return ret;
    }
    

    Here is the process that you will have to go through:

    1- Find the file f77_diagram.c in the src directory.

    2- Copy and paste the above code right after the #include statements.

    3- Return to your command shell in the main make directory.

    4- Re-run ./configure

    5- Re-run make

    If this doesn’t work, there are a few other things you could try.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have wanted to try GAE since launch, but coming from ASP .NET and
I wanted to make some simple file recovery software, where I want to try
I recently decided that I wanted to try learning how to program in assembly.
I've installed TortoiseSVN in C > Program Files > TortoiseSVN . I wanted to
so I wanted to try my first CLR project in Visual C++. So I
I am working on some scraping app, i wanted to try to get it
I just wanted to try out some shaders on a flat image. Turns out
i try to learn scheme and as a test project i wanted to create
A friend of mine wanted help learning to program, so he gave me all
I wanted to write a timer in java.which will do the following: when program

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.