On 12/04/14 18:59, Stefan Bruda wrote:
[]
> I was under the impression that ios::bin is in fact ios::binary. To
> confirm I did a test with this simple file:
>
> #include <iostream>
> #include <fstream>
> using namespace std;
> int main () {
> ofstream myfile;
> myfile.open("temp", ios::binary);
> }
>
> and it compiles fine with the stock clang++/g++. Yet the respective
> test built into the configuration of the package does not think so:
>
> checking whether standard member ios::binary is available... no
That configure script is 10 years old, from a time when iostream.h was
still a valid C++ header file. It does
#include <iostream.h>
#include <fstream.h>
and thinks the resulting error message about iostream.h not found means
ios::binary is not available. The fix is to patch the configure script
(or acinclude.m4 and then run autoreconf) so that it #includes the right
iostream and fstream headers.
--
Martin
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users