Hi!
I'm new to Cygwin, and installed libbsd from Cygwinports.
cygwin 1.7.17
libbsd0, libbsd-devel 0.4.2-1
I'm trying to compile this simple stuff on it:
test_libbsd.c:
--------------------8<--------------------
#include <stdio.h>
#include <bsd/readpassphrase.h>
int
main(int argc, char *argv[])
{
return(0);
}
--------------------8<--------------------
$ gcc -I/usr/include/bsd -lbsd -o test_libbsd test_libbsd.c
In file included from /usr/include/bsd/stdio.h:30,
from /usr/include/bsd/stdio.h:30,
from /usr/include/bsd/stdio.h:30,
[.. many, many similar lines ..]
from test_libbsd.c:1:
/usr/include/bsd/stdio.h:30:19: #include nested too deeply
/usr/include/bsd/stdio.h:36:23: #include nested too deeply
/usr/include/bsd/stdio.h:37:23: #include nested too deeply
In file included from /usr/include/bsd/stdio.h:30,
from /usr/include/bsd/stdio.h:30,
from /usr/include/bsd/stdio.h:30,
[.. many, many similar lines ..]
from test_libbsd.c:1:
/usr/include/bsd/stdio.h:40: error: syntax error before "const"
/usr/include/bsd/stdio.h:42: error: parse error before '*' token
/usr/include/bsd/stdio.h:44: error: parse error before '*' token
In file included from /usr/include/bsd/sys/cdefs.h:30,
from /usr/include/bsd/sys/cdefs.h:30,
from /usr/include/bsd/sys/cdefs.h:30,
[.. many, many similar lines ..]
from /usr/include/bsd/readpassphrase.h:34,
from test_libbsd.c:2:
/usr/include/bsd/sys/cdefs.h:30:23: #include nested too deeply
In file included from /usr/include/machine/_types.h:7,
from /usr/include/sys/types.h:25,
from /usr/include/bsd/readpassphrase.h:35,
from test_libbsd.c:2:
/usr/include/machine/_default_types.h:25: error: syntax error before "typedef"
In file included from test_libbsd.c:2:
/usr/include/bsd/readpassphrase.h:38: error: syntax error before "char"
test_libbsd.c:5: error: syntax error before "int"
I'm stuck to be honest. Is there some trick on Cygwin to be able to
compile and link against libbsd (more specifically, to use its header
files)?
Thanks,
Daniel
--
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general