Cannot build sources in VC++ 6
"Joe Biron" <[email protected]>
| Newsgroups | gmane.comp.audio.zinf.devel |
|---|---|
| Message-ID | <001a01c35f4b$23fc0250$b77ba8c0@shire> |
I recently heard about Zinf and would like to fiddle with the sources to
learn about MP3 decoding and playback.
I downloaded Win32 the source zip from
http://prdownloads.sourceforge.net/zinf/zinf-2.2.1.zip and attempted to
build in Visual Studio 6,0, but got numerous errors related to STL
incompatibilities. Tying to shoehorn in SGI's STL was a miserable and
fruitless experience.I found a thread on this mailing list archive stating
that SGI STL is no longer required, and that one should get the latest
sources from CVS and simply build the BuildAll target. So, I obediently got
the "zinf" module from CVS.
Trying to load the zinf.dsw workspace into VC++6, I received complaints that
the following projects were not available:
- id3v1
- id3v2
- pls
- unzip
- zlib
Sho'nuff, they do not exist, yet the dsw thinks they need to be around.
Thinking this may be a benign "refactoring", I set my Active Configuration
to "BuildAll- Win32 NASM Release" (yes, I installed NASM and added it's path
to my Tools/Options/Directories).
I also had to stick in some dlls, like vorbisfile.dll, etc, but got past
that ok.
There were some preprocessor blocks commented out, which resulted in the
compiler trying to find unistd.h and sys/time.h, which of course dont exist
on Windows... I was able to resolve those issues. However, I still have some
problems which I cannot resolve since I am not very familiar with the STL,
and not familiar at all with this Zinf code.
Here's a snippet of the build output
********************************************
main.cpp
..\..\include\musiccatalog.h(170) : error C2061: syntax error : identifier
'vector'
..\..\include\musiccatalog.h(216) : error C2065: 'pair' : undeclared
identifier
..\..\include\musiccatalog.h(216) : error C2275: 'std::string' : illegal use
of this type as an expression
..\..\include\musiccatalog.h(216) : error C2059: syntax error : '>'
..\..\include\musiccatalog.h(216) : error C2238: unexpected token(s)
preceding ';'
missingfile.cpp
..\..\include\event.h(33) : error C2629: unexpected 'class Event ('
..\..\include\event.h(33) : error C2334: unexpected token(s) preceding '{';
skipping apparent function body
..\..\include\event.h(37) : error C2146: syntax error : missing ';' before
identifier 'Type'
..\..\include\event.h(37) : error C2501: 'int32_t' : missing storage-class
or type specifiers
..\..\include\event.h(37) : warning C4183: 'Type': member function
definition looks like a ctor, but name does not match enclosing class
..\..\include\event.h(41) : error C2146: syntax error : missing ';' before
identifier 'm_type'
..\..\include\event.h(41) : error C2501: 'int32_t' : missing storage-class
or type specifiers
..\..\include\event.h(41) : error C2501: 'm_type' : missing storage-class or
type specifiers
musiccatalog.cpp
..\..\include\event.h(33) : error C2629: unexpected 'class Event ('
..\..\include\event.h(33) : error C2334: unexpected token(s) preceding '{';
skipping apparent function body
..\..\include\event.h(37) : error C2146: syntax error : missing ';' before
identifier 'Type'
..\..\include\event.h(37) : error C2501: 'int32_t' : missing storage-class
or type specifiers
..\..\include\event.h(37) : warning C4183: 'Type': member function
definition looks like a ctor, but name does not match enclosing class
..\..\include\event.h(41) : error C2146: syntax error : missing ';' before
identifier 'm_type'
..\..\include\event.h(41) : error C2501: 'int32_t' : missing storage-class
or type specifiers
..\..\include\event.h(41) : error C2501: 'm_type' : missing storage-class or
type specifiers
E:\Projects\zinf\base\src\musiccatalog.cpp(651) : error C2664: '__thiscall
Event::Event(const class Event &)' : cannot convert parameter 1 from 'const
int' to 'const class Event &'
Reason: cannot convert from 'const int' to 'const class Event'
No constructor could take the source type, or constructor overload
resolution was ambiguous
*************************************
This goes on and on, for 87 errors.
What gives? I was able to install the binaries of Zinf and I can actually
use the product, which proves that SOMEONE at SOME TIME, of THIS DIMENSION
was able to compile this thing on Win32.
Can someone point me in the right direction.
Thanks,
Joe
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01