Stephen,
$ which g++
/cygdrive/c/MinGW/bin/g++
[BTW, I was carefully following mingw.txt instructions... :)]
Can I simply manually define HAVE_GETOPT_H in the generated config.h?
When I do that, the first compile step stops with error:
$ make
g++ -DHAVE_CVS_IDENT=1 -DHAVE_CONFIG_H -I. -I. -Ic:/gnuwin32/include -Ic:/MinGW
packages/include -Wall -g -O2 -MD -c main.cc -o main.o
main.cc:55:22: getopt.h: No such file or directory
main.cc: In function `void read_iconfig_file(const char*)':
main.cc:406: `optarg' undeclared (first use this function)
main.cc:406: (Each undeclared identifier is reported only once for each
function it appears in.)
main.cc: In function `int main(int, char**)':
main.cc:458: `getopt' undeclared (first use this function)
main.cc:518: `optind' undeclared (first use this function)
make: *** [main.o] Error 1
I see two getopt.h
c:\cygwin\usr\include\getopt.h
c:\cygwin\usr\include\mingw\getopt.h
but none in c:\MinGW\...
Double checking:
LDFLAGS="-Lc:/gnuwin32/lib -Lc:/MinGW-packages/include"
should the second be /lib instead of /include ?
Cordially, CN
On Wed, 29 Jun 2005 15:51:31 -0700, Stephen Williams wrote:
CN wrote:
| Stephen,
|
| Thank you for your help. I believe I am using the mingw:
| $ which c++
| /cygdrive/c/MinGW/bin/c++
Try "which g++" instead. Your makefile is using g++, not c++.
Also, there is something fishy about HAVE_GETOPT_H in your
generated config.h. That is *defined* in the example I have
in front of me.
| After the above I have configured with:
| $CPPFLAGS="-Ic:/gnuwin32/include -Ic:/MinGW-packages/include"
| $LDFLAGS="-Lc:/gnuwin32/lib -Lc:/MinGW-packages/include"
| $export CPPFLAGS LDFLAGS
|
| I have one change wrt your mingw.txt: instead of bison 1.75, I am using
| bison 1.875b. The latter does not appear to have the compile errors of
| bison 1.875-1.
|
| Here is my config.h
| * config.h. Generated by configure. */
| #ifndef __config_H /* -*- c++ -*- */
| #define __config_H
| /*
| * Copyright (c) 2001 Stephen Williams ([EMAIL PROTECTED])
| *
| ...
| * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
| */
| #ifdef HAVE_CVS_IDENT
| #ident "$Id: config.h.in,v 1.11 2004/10/04 01:10:52 steve Exp $"
| #endif
|
| #if defined(__cplusplus)
| # if !defined(__GNUC__)
| using namespace std;
| # elif (__GNUC__ == 3)
| using namespace std;
| # endif
| #endif
|
| /* # undef NEED_LU */
| /* # undef NEED_TU */
| /* # undef WLU */
| /* # undef WTU */
| /* # undef HAVE_TIMES */
| # define HAVE_IOSFWD 1
| /* # undef HAVE_GETOPT_H */
| /* # undef HAVE_LIBIBERTY_H */
| # define HAVE_MALLOC_H 1
| /* # undef HAVE_DLFCN_H */
| /* # undef HAVE_DL_H */
| /* # undef HAVE_FCHMOD */
| /* # undef HAVE_LIBREADLINE */
| # define HAVE_LIBZ 1
| # define HAVE_LIBBZ2 1
| /* # undef HAVE_SYS_WAIT_H */
| /* # undef WORDS_BIGENDIAN */
|
| /*
| * $Log: config.h.in,v $
rt gcc 3.0. (Stephan Boettcher)
| *
| */
| #endif // __config_H
|
|
| Cordially, CN
--
Steve Williams "The woods are lovely, dark and deep.
steve at icarus.com But I have promises to keep,
http://www.icarus.com and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep."
- Re: gEDA: Need help resolving a scheduling contradiction geda
- Re: gEDA: Need help resolving a scheduling contradic... Stephen Williams
- Re: gEDA: Need help resolving a scheduling contradiction Stephen Brickles
- Re: gEDA: Need help resolving a scheduling contradic... Stephen Williams
- gEDA: Win compile help please CN
- gEDA: Win compile help please CN
- gEDA: Win compile help please CN
- Re: gEDA: Win compile help please Stephen Williams
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Win compile help plea... Stephen Williams
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Win compile help plea... Matthew Ballance
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Win compile help plea... Matthew Ballance
- Re: gEDA: Win compile help plea... Matthew Ballance
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Need help resolving a scheduling contr... John Sanguinetti
- Re: gEDA: Need help resolving a scheduling contradiction geda
- Re: gEDA: Need help resolving a scheduling contradiction Stephen Brickles