From: Tim H. <th...@al...> - 2001-06-26 07:19:47
|
Greetings, I'm a win32 developer by hobby and am new to ID3lib. I have spent a few hours trying to build a simple example and am at the point of frustration. Here's what I notice: There is no documentation clearly stating what lib's dll's and includes you need to make use of Id3lib in your win32 programs. Personally I want to 'use' id3lib and not necessarily have to build it myself. This should be simple. Second, there is no documentation stating clearly how to build and use id3lib under a win32 environment. Obviously someone has gone through the work to create MSVC workspaces which flawlessly build however do not seem to work once put into an external project. Third, the examples do not have an MSVC workspace created which would probably serve to solve the missing documentation problems above by example. I've seen the same problems I'm running into posted in the devel list as well as under bug reports but I haven't seen any solutions. I'm sure I've overlooked something. Can anyone lend some simple advice? My first choice would be to simple download the latest Win32 lib's/include(s)/dll's but I will settle for building myself if it can just be explained better. In my first attempt I found a file id3com.zip that contains: id3lib.lib id3lib.dll id3com.dll I'm not entirely sure what version these are unfortunately. I'm also not sure what 'id3com.dll' is. I assume that its something that is used by id3lib.dll however looking at id3lib.dll with MSVC's 'Dependency Walker' doesn't show it as a dependency. When I link my program with the above id3lib.lib I get the following link errors: LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library id3lib.lib(tag_parse.obj) : error LNK2001: unresolved external symbol _uncompress id3lib.lib(frame_parse.obj) : error LNK2001: unresolved external symbol _uncompress id3lib.lib(frame_render.obj) : error LNK2001: unresolved external symbol _compress Debug/MP3Tagger.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. In my second attempt, I tried to build the libs myself. While building myself I get the following problem: I can build id3lib.dll and idelib.lib however when linking my program gives: MP3TaggerDlg.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall ID3_Tag::~ID3_Tag(void)" (??1ID3_Tag@@UAE@XZ) MP3TaggerDlg.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall ID3_Tag::Link(char const *,unsigned short)" (?Link@ID3_Tag@@QAEIPBDG@Z) MP3TaggerDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall ID3_Tag::Clear(void)" (?Clear@ID3_Tag@@QAEXXZ) MP3TaggerDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall ID3_Tag::ID3_Tag(char const *)" (??0ID3_Tag@@QAE@PBD@Z) Debug/MP3Tagger.exe : fatal error LNK1120: 4 unresolved externals Error executing link.exe. This seems an awful lot like I didn't link with idelib.lib however I did. I notice that the id3lib.lib I built is only 13k... seems a little small to me. I would really appreciate any help anyone could give me. I think some very minor documentation would solve these issues for the next person who runs into them. Thanks, Tim |