This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

linker can't find getsubopt()


Hi,

I try to compile this simple program on cygwin:


#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>

int main()
{
  getsubopt(0,0,0);
  return 0;
}



gcc has no problem with the program, but when linking starts, the linker can't find
a reference to getsubopt.

I don't care about the program working or not, I just want to make it compile, as it will solve
several problems porting a Linux program to CYGWIN.

Any ideas?

Maor Avni

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]