did anyone try to compile readanysf~ on windows? is there a binary available?
smoerk wrote:
did anyone try to compile readanysf~ on windows?
I once tried to, but when trying to compile flext (0.4.6 from Thomas' site) I get:
fllib.cpp source\flmap.h(49) : error C2437: 'iterator' : already initialized source\flmap.h(49) : while compiling class-template member function '__t hiscall DataMap<struct symbol const *,class libclass *>::iterator::DataMap<struc t symbol const *,class libclass *>::iterator(class std::_Tree<unsigned int,struc t std::pair<unsigned int const ,unsigned int>,struct std::map<unsigned int,unsig ned int,struct std::less<unsigned int>,class std::allocator<unsigned int> >::_Kf n,struct std::less<unsigned int>,class std::allocator<unsigned int>
::iterator)
' NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop.
Any ideas?
Olaf
Hi Olaf, since i often compile flext a few times a day i'm very much wondering about the source of this error. Which compiler, version etc. are you using?
best greetings, Thomas
----- Original Message ----- From: "Olaf Matthes" olaf.matthes@gmx.de To: "smoerk" smoerk@gmx.de Cc: "pd" pd-list@iem.kug.ac.at Sent: Monday, August 09, 2004 10:33 AM Subject: Re: [PD] readanysf~ windows
smoerk wrote:
did anyone try to compile readanysf~ on windows?
I once tried to, but when trying to compile flext (0.4.6 from Thomas' site) I get:
fllib.cpp source\flmap.h(49) : error C2437: 'iterator' : already initialized source\flmap.h(49) : while compiling class-template member function '__t hiscall DataMap<struct symbol const *,class libclass *>::iterator::DataMap<struc t symbol const *,class libclass *>::iterator(class std::_Tree<unsigned int,struc t std::pair<unsigned int const ,unsigned int>,struct std::map<unsigned int,unsig ned int,struct std::less<unsigned int>,class std::allocator<unsigned int> >::_Kf n,struct std::less<unsigned int>,class std::allocator<unsigned int>
::iterator)
' NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop.
Any ideas?
Olaf
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
Thomas Grill wrote:
Hi Olaf, since i often compile flext a few times a day i'm very much wondering about the source of this error. Which compiler, version etc. are you using?
MSVC++ 6.0, pd 0.37-3, flext 0.4.6 (just downloaded from your site again). Tried both Flext for Pd and Max/MSP...
Olaf
Hi Olaf, it seems i haven't compiled with MSVC6 for some time. It has a rather old-fashioned STL implementation, but i introduces a workaround. Please find the attached file (which will be in CVS by tomorrow). Max compilation (for threaded flext versions) with MSVC6 suffers from the fact that the compiler provides rather old Windows SDK headers - it might not work. There's also another more subtle problem... here with MSVC6, math.h wants to be included with C++ linkage, therefore it has to be included before the "extern "C"" section in flstdc.h, which can easily be done.
best greetings, Thomas
----- Original Message ----- From: "Olaf Matthes" olaf.matthes@gmx.de To: "Thomas Grill" gr@grrrr.org Cc: "smoerk" smoerk@gmx.de; "pd" pd-list@iem.kug.ac.at Sent: Monday, August 09, 2004 12:41 PM Subject: *** GMX Spamverdacht *** Re: [PD] readanysf~ windows
Thomas Grill wrote:
Hi Olaf, since i often compile flext a few times a day i'm very much wondering
about
the source of this error. Which compiler, version etc. are you using?
MSVC++ 6.0, pd 0.37-3, flext 0.4.6 (just downloaded from your site again). Tried both Flext for Pd and Max/MSP...
Olaf
Okay, thanks, this solves the flext compile problem. Now I'm getting a lot of errors ("error C2872: 'whatever' : ambiguous symbol" in some VC++ includes) when trying to compile readanysf~, so maybe I should stick to plain C code... ;-)
Olaf
Thomas Grill wrote:
Hi Olaf, it seems i haven't compiled with MSVC6 for some time. It has a rather old-fashioned STL implementation, but i introduces a workaround. Please find the attached file (which will be in CVS by tomorrow). Max compilation (for threaded flext versions) with MSVC6 suffers from the fact that the compiler provides rather old Windows SDK headers - it might not work. There's also another more subtle problem... here with MSVC6, math.h wants to be included with C++ linkage, therefore it has to be included before the "extern "C"" section in flstdc.h, which can easily be done.
best greetings, Thomas
----- Original Message ----- From: "Olaf Matthes" olaf.matthes@gmx.de To: "Thomas Grill" gr@grrrr.org Cc: "smoerk" smoerk@gmx.de; "pd" pd-list@iem.kug.ac.at Sent: Monday, August 09, 2004 12:41 PM Subject: *** GMX Spamverdacht *** Re: [PD] readanysf~ windows
Thomas Grill wrote:
Hi Olaf, since i often compile flext a few times a day i'm very much wondering
about
the source of this error. Which compiler, version etc. are you using?
MSVC++ 6.0, pd 0.37-3, flext 0.4.6 (just downloaded from your site again). Tried both Flext for Pd and Max/MSP...
Olaf
/*
flext - C++ layer for Max/MSP and pd (pure data) externals
Copyright (c) 2001-2004 Thomas Grill (xovo@gmx.net) For information on usage and redistribution, and for a DISCLAIMER OF ALL WARRANTIES, see the file, "license.txt," in this distribution.
*/
/*! \file flmap.h \brief special map class for all 32-bit key/value-pairs */
#ifndef __FLMAP_H #define __FLMAP_H
#include <map>
/*! \defgroup FLEXT_SUPPORT Flext support classes @{ */
//! Base class for maps class AnyMap: public std::map<unsigned int,unsigned int> { typedef std::map<unsigned int,unsigned int> Parent; public: AnyMap(); ~AnyMap(); iterator find(unsigned int k); unsigned int &operator [](unsigned int k);
typedef std::pair<unsigned int,unsigned int> pair; };
//! Specialized map class for any 32-bit key/value types template <class K,class T> class DataMap: public AnyMap { public: class iterator: public AnyMap::iterator { public: iterator() {} #if defined(_MSC_VER) && (_MSC_VER < 0x1300) // with the MSVC6 STL implementation iterators can't be initialized... iterator(AnyMap::iterator &it) { static_cast<AnyMap::iterator &>(*this) = it; } #else iterator(AnyMap::iterator &it): AnyMap::iterator(it) {} #endif
inline K &key() const { return *(K *)&((*this)->first); } inline T &data() const { return *(T *)&((*this)->second); }
};
class pair: public AnyMap::pair { public: inline K &key() const { return *(K *)&first; } inline T &data() const { return *(T *)&second; } };
inline iterator find(K k) { return AnyMap::find(*(unsigned int *)&k); } inline T &operator [](K k) { return *(T *)&(AnyMap::operator [](*(unsigned int *)&k)); } inline void erase(K k) { AnyMap::erase(*(unsigned int *)&k); } };
//! @} // FLEXT_SUPPORT
#endif
Olaf Matthes wrote:
Okay, thanks, this solves the flext compile problem. Now I'm getting a lot of errors ("error C2872: 'whatever' : ambiguous symbol" in some VC++ includes) when trying to compile readanysf~, so maybe I should stick to plain C code... ;-)
Olaf
hi, olaf,
did you finally succeed in compiling "readanysf~" ?
would be interested too
ciao
oliver
lot of errors ("error C2872: 'whatever' : ambiguous symbol" in some
did you finally succeed in compiling "readanysf~" ?
compiles fine w/ gcc after changing a line or 2 for winsock...but i get errors lke this: tried c:\program\pd\extra\readanysf~.dll and succeeded Opening file: C:/music/m/noname.flac FLAC: read returned 0 FLAC: no process single
otehr times it says 'file is 0kbps' etc. proably something really simple w/ the file opening needs to be fixed for win32, but seeing as theres other ways to read mp3 and ogg, and FLAC doesnt work w/ 32bit floats anyways...