Hi,

I'm trying to cross compile Cuba library
(http://www.feynarts.de/cuba/, here is the latest tarball:
http://www.feynarts.de/cuba/Cuba-4.2.tar.gz) for Windows on Linux
using mingw-w64, but I ran into this error:


$ x86_64-w64-mingw32-gcc -v
Using built-in specs.
COLLECT_GCC=x86_64-w64-mingw32-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-w64-mingw32/5.4-win32/lto-wrapper
Target: x86_64-w64-mingw32
Configured with: ../../src/configure --build=x86_64-linux-gnu
--prefix=/usr --includedir='/usr/include' --mandir='/usr/share/man'
--infodir='/usr/share/info' --sysconfdir=/etc --localstatedir=/var
--disable-silent-rules --libdir='/usr/lib/x86_64-linux-gnu'
--libexecdir='/usr/lib/x86_64-linux-gnu' --disable-maintainer-mode
--disable-dependency-tracking --prefix=/usr --enable-shared
--enable-static --disable-multilib --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --libdir=/usr/lib
--enable-libstdcxx-time=yes --with-tune=generic
--enable-version-specific-runtime-libs --enable-fully-dynamic-string
--enable-libgomp --enable-languages=c,c++,fortran,objc,obj-c++
--enable-lto --with-plugin-ld --enable-threads=win32
--program-suffix=-win32 --program-prefix=x86_64-w64-mingw32-
--target=x86_64-w64-mingw32 --with-as=/usr/bin/x86_64-w64-mingw32-as
--with-ld=/usr/bin/x86_64-w64-mingw32-ld --disable-libatomic
Thread model: win32
gcc version 5.4.0 20160609 (GCC)
$ ./configure --host=x86_64-w64-mingw32
[...]
$ make
[...]
In file included from ./src/common/Fork.c:11:0:
./src/common/Fork.c: In function ‘cubawait’:
./src/common/stddecl.h:192:29: error: ‘cubafun_’ undeclared (first use
in this function)
 #define MasterExit() do if( cubafun_.init ) { \
                             ^
./src/common/Fork.c:160:3: note: in expansion of macro ‘MasterExit’
   MasterExit();
   ^
./src/common/stddecl.h:192:29: note: each undeclared identifier is
reported only once for each function it appears in
 #define MasterExit() do if( cubafun_.init ) { \
                             ^
./src/common/Fork.c:160:3: note: in expansion of macro ‘MasterExit’
   MasterExit();
   ^


Please note that I can compile with both gcc.and clang.  It's the
first time I try to cross compile a program, so I may have missed
something.  How can I go about this?

Thank you,
Mosè

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to