"std::min" and "std:::max"

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:) :eek: :mad: :rolleyes: :cool: :p ;) :D :o :( :confused:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: "std::min" and "std:::max"

"std::min" and "std:::max"

Post by ning » Mon May 10, 2010 3:54 pm

Recently I am trying to install tahoe on my Ubuntu9.10 and openSUSE 11.2 machine. Just want to point out one compiling issue which says "fstream.tcc ::,..::expected unqualified-id before ')' token. It turns out that f2c modules defines min() amd max() as macro in f2c.h. This lead to conflict with std::min and thus GCC then has no idea of "std::min". Comment out the macros in f2c.h and then the installation runs to the end successfully.

....in case somebody run into this issue and got lost.....


:)looks like f2c is not very good in the sense that standard c++ doesn't like it ins ome way:) On the other hand, standard is not always standard! New standard always replaces the old one and claim itself to be better for some unknown reasons... :)

Top

cron