[Coin-discuss] Re: [Coin-bcpdiscuss] BCP examples won't build on CYGWIN environment.

Gualtiero Tramezzi gtramezzi at hotmail.com
Fri Jan 26 05:14:10 EST 2007


I was not able to build BCP examples nor the other BCP programs like SHELL.
I've correctly modified Makefiles but every time i type make a lot of 
"undeclared" errors appear, like this:
$ make
g++ -g -mno-cygwin -pipe -pedantic-errors -Wimplicit -Wparentheses 
-Wreturn-type
-Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -g -DLP `for 
i i
n  /usr/include; do echo $i | sed -e 's/^/-I/'; done` -c -o LP/BB_lp.o `test 
-f
'LP/BB_lp.cpp' || echo '/'`LP/BB_lp.cpp
In file included from 
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_al
gobase.h:67,
                 from 
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/vector:67,
                 from LP/BB_lp.cpp:13:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstdlib:181: error: 
`::strtold' h
as not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstdlib:200: error: 
`__gnu_cxx::s
trtold' has not been declared
In file included from 
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/postyp
es.h:46,
                 from 
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iosfwd:50,
                 from 
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_al
gobase.h:70,
                 from 
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/vector:67,
                 from LP/BB_lp.cpp:13:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:146: error: `::fgetwc' 
has
not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:147: error: `::fgetws' 
has
not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:148: error: `::fputwc' 
has
not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:149: error: `::fputws' 
has
not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:150: error: `::fwide' 
has
not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:151: error: 
`::fwprintf' h
as not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:152: error: 
`::fwscanf' ha
s not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:153: error: `::getwc' 
has
not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:154: error: 
`::getwchar' h
as not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:159: error: `::putwc' 
has
not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:160: error: 
`::putwchar' h
as not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:161: error: 
`::swprintf' h
as not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:162: error: 
`::swscanf' ha
s not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:163: error: 
`::ungetwc' ha
s not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:164: error: 
`::vfwprintf'
has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:166: error: 
`::vfwscanf' h
as not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:168: error: 
`::vswprintf'
has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:170: error: 
`::vswscanf' h
as not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:172: error: 
`::vwprintf' h
as not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:174: error: 
`::vwscanf' ha
s not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:182: error: 
`::wcsftime' h
as not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:189: error: `::wcstod' 
has
not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:191: error: `::wcstof' 
has
not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:193: error: `::wcstok' 
has
not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:194: error: `::wcstol' 
has
not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:195: error: 
`::wcstoul' ha
s not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:196: error: 
`::wcsxfrm' ha
s not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:202: error: 
`::wprintf' ha
s not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:203: error: `::wscanf' 
has
not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:249: error: 
`::wcstold' ha
s not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:258: error: 
`::wcstoll' ha
s not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:259: error: 
`::wcstoull' h
as not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:265: error: 
`__gnu_cxx::wc
stold' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:266: error: 
`__gnu_cxx::wc
stoll' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:267: error: 
`__gnu_cxx::wc
stoull' has not been declared
LP/BB_lp.cpp:15:21: BB_lp.hpp: No such file or directory
LP/BB_lp.cpp:16:22: BB_cut.hpp: No such file or directory
In file included from 
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/locale
_facets.h:132,
                 from 
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/basic_
ios.h:44,
                 from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ios:51,
                 from 
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ostream:45,

                 from 
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iostream:45
,
                 from /usr/include/ClpSimplex.hpp:18,
                 from /usr/include/OsiClpSolverInterface.hpp:11,
                 from LP/BB_lp.cpp:17:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:44: error: `_UPPER' was not declared in this scope
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:45: error: `_LOWER' was not declared in this scope
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:46: error: `_ALPHA' was not declared in this scope
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:47: error: `_DIGIT' was not declared in this scope
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:48: error: `_HEX' was not declared in this scope
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:49: error: `_SPACE' was not declared in this scope
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:50: error: `_BLANK' was not declared in this scope
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:50: error: `_PUNCT' was not declared in this scope
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:50: error: `_ALPHA' was not declared in this scope
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:50: error: `_DIGIT' was not declared in this scope
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:51: error: `_PUNCT' was not declared in this scope
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:51: error: `_ALPHA' was not declared in this scope
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:51: error: `_DIGIT' was not declared in this scope
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:52: error: `_CONTROL' was not declared in this scope
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:53: error: `_PUNCT' was not declared in this scope
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:54: error: `_ALPHA' was not declared in this scope
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/i686-pc-mingw32/bits/ctype_base.h
:54: error: `_DIGIT' was not declared in this scope
In file included from /usr/include/CoinFloatEqual.hpp:10,
                 from /usr/include/CoinPackedVectorBase.hpp:14,
                 from /usr/include/CoinPackedMatrix.hpp:8,
                 from /usr/include/ClpMatrixBase.hpp:8,
                 from /usr/include/ClpPackedMatrix.hpp:9,
                 from /usr/include/ClpModel.hpp:16,
                 from /usr/include/ClpSimplex.hpp:20,
                 from /usr/include/OsiClpSolverInterface.hpp:11,
                 from LP/BB_lp.cpp:17:
/usr/include/CoinFinite.hpp: In function `bool CoinIsnan(double)':
/usr/include/CoinFinite.hpp:90: error: `_isnan' undeclared (first use this 
funct
ion)
/usr/include/CoinFinite.hpp:90: error: (Each undeclared identifier is 
reported o
nly once for each function it appears in.)
LP/BB_lp.cpp: At global scope:
LP/BB_lp.cpp:28: error: `BB_lp' has not been declared
LP/BB_lp.cpp: In function `void unpack_module_data(BCP_buffer&)':
LP/BB_lp.cpp:32: error: `p_desc' undeclared (first use this function)
LP/BB_lp.cpp:33: error: `EPS' undeclared (first use this function)
LP/BB_lp.cpp: At global scope:
LP/BB_lp.cpp:38: error: `BB_lp' has not been declared
LP/BB_lp.cpp:38: error: expected `,' or `...' before '*' token
LP/BB_lp.cpp:41: error: ISO C++ forbids declaration of `BCP_cut_algo' with 
no ty
pe
LP/BB_lp.cpp: In function `void pack_cut_algo(int)':
LP/BB_lp.cpp:42: error: expected primary-expression before "const"
LP/BB_lp.cpp:42: error: expected `;' before "const"
LP/BB_lp.cpp:43: error: `bb_cut' undeclared (first use this function)
LP/BB_lp.cpp:46: error: `buf' undeclared (first use this function)
LP/BB_lp.cpp: At global scope:
LP/BB_lp.cpp:51: error: expected constructor, destructor, or type conversion 
bef
ore '*' token
LP/BB_lp.cpp:51: error: expected `,' or `;' before '*' token
LP/BB_lp.cpp:61: error: `BB_lp' has not been declared
LP/BB_lp.cpp:75: error: `BB_lp' has not been declared
LP/BB_lp.cpp: In function `void initialize_new_search_tree_node(const 
BCP_vec<BC
P_var*>&, const BCP_vec<BCP_cut*>&, const BCP_vec<BCP_obj_status>&, const 
BCP_ve
c<BCP_obj_status>&, BCP_vec<int>&, BCP_vec<double>&, BCP_vec<int>&, 
BCP_vec<doub
le>&)':
LP/BB_lp.cpp:88: error: `in_strong' undeclared (first use this function)
LP/BB_lp.cpp:89: error: `kill_node' undeclared (first use this function)
LP/BB_lp.cpp: At global scope:
LP/BB_lp.cpp:100: error: `BB_lp' has not been declared
LP/BB_lp.cpp: In function `void modify_lp_parameters(OsiSolverInterface*, 
bool)'
:
LP/BB_lp.cpp:106: error: `in_strong' undeclared (first use this function)
LP/BB_lp.cpp: At global scope:
LP/BB_lp.cpp:113: error: `BB_lp' has not been declared
LP/BB_lp.cpp: In function `BCP_solution* test_feasibility(const 
BCP_lp_result&,
const BCP_vec<BCP_var*>&, const BCP_vec<BCP_cut*>&)':
LP/BB_lp.cpp:124: error: `in_strong' undeclared (first use this function)
LP/BB_lp.cpp:131: error: `getLpProblemPointer' undeclared (first use this 
functi
on)
LP/BB_lp.cpp:141: error: incomplete type `BCP_lp_user' used in nested name 
speci
fier
LP/BB_lp.cpp:149: error: `kill_node' undeclared (first use this function)
LP/BB_lp.cpp: At global scope:
LP/BB_lp.cpp:156: error: `BB_lp' has not been declared
LP/BB_lp.cpp: In function `void logical_fixing(const BCP_lp_result&, const 
BCP_v
ec<BCP_var*>&, const BCP_vec<BCP_cut*>&, const BCP_vec<BCP_obj_status>&, 
const B
CP_vec<BCP_obj_status>&, int, BCP_vec<int>&, BCP_vec<double>&)':
LP/BB_lp.cpp:168: error: `kill_node' undeclared (first use this function)
LP/BB_lp.cpp: At global scope:
LP/BB_lp.cpp:177: error: `BB_lp' has not been declared
LP/BB_lp.cpp:222: error: `BB_lp' has not been declared
LP/BB_lp.cpp:235: error: `BB_lp' has not been declared
LP/BB_lp.cpp: In function `void cuts_to_rows(const BCP_vec<BCP_var*>&, 
BCP_vec<B
CP_cut*>&, BCP_vec<BCP_row*>&, const BCP_lp_result&, BCP_object_origin, 
bool)':
LP/BB_lp.cpp:251: error: ISO C++ forbids declaration of `type name' with no 
type

LP/BB_lp.cpp:251: error: expected `>' before "BB_cut"
LP/BB_lp.cpp:251: error: expected `(' before "BB_cut"
LP/BB_lp.cpp:251: error: `BB_cut' undeclared (first use this function)
LP/BB_lp.cpp:251: error: expected primary-expression before '>' token
LP/BB_lp.cpp:251: error: expected `)' before ';' token
LP/BB_lp.cpp: At global scope:
LP/BB_lp.cpp:262: error: `BCP_branching_decision' does not name a type
make: *** [LP/BB_lp.o] Error 1

This is the output from shell example. Cygwin is the latest with all 
packages installed. Anyone has an idea to solve this problem?

Thanks in advance.
Gualtiero.

>From: "Gualtiero Tramezzi" <gtramezzi at hotmail.com>
>To: coin-bcpdiscuss at list.coin-or.org
>Subject: Re: [Coin-bcpdiscuss] BCP examples won't build on CYGWIN 
>environment.
>Date: Fri, 19 Jan 2007 08:50:07 +0100
>
>Bcp-1.0.0.tgz from ftp site.
>
>>From: Laszlo Ladanyi <ladanyi at us.ibm.com>
>>To: Gualtiero Tramezzi <gtramezzi at hotmail.com>
>>CC: coin-bcpdiscuss at list.coin-or.org
>>Subject: Re: [Coin-bcpdiscuss] BCP examples won't build on CYGWIN 
>>environment.
>>Date: Thu, 18 Jan 2007 13:16:35 -0500 (EST)
>>
>>Which version of BCP are you using? A release from a tarball? stable/trunk
>>from svn?
>>
>>Thanks,
>>--Laci
>>
>>On Thu, 18 Jan 2007, Gualtiero Tramezzi wrote:
>>
>> > Hello, I've built and installed BCP libraries on a CYGWIN environment 
>>but I
>> > cannot
>> > build BCP examples. For example MaxCut gives me this error:
>> >
>>
>>... errors deleted ...
>>
>
>_________________________________________________________________
>Don't just search. Find. Check out the new MSN Search! 
>http://search.msn.com/
>
>_______________________________________________
>Coin-bcpdiscuss mailing list
>Coin-bcpdiscuss at list.coin-or.org
>http://list.coin-or.org/mailman/listinfo/coin-bcpdiscuss

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




More information about the Coin-discuss mailing list